Skip to content

Commit

Permalink
Initialize player notification asap
Browse files Browse the repository at this point in the history
Otherwise Android's foreground services implementation would complain
  • Loading branch information
Stypox committed Oct 2, 2020
1 parent dbdc04c commit fbcdaa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/org/schabi/newpipe/player/MainPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ private void createView() {
playerImpl = new VideoPlayerImpl(this);
playerImpl.setup(layout);
playerImpl.shouldUpdateOnProgress = true;

NotificationUtil.getInstance().createNotificationAndStartForeground(playerImpl, this);
}

@Override
Expand Down

0 comments on commit fbcdaa7

Please sign in to comment.