mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 00:20:32 +00:00
Initialize player notification asap
Otherwise Android's foreground services implementation would complain
This commit is contained in:
parent
dbdc04c45e
commit
fbcdaa77e3
@ -103,6 +103,8 @@ public final class MainPlayer extends Service {
|
||||
playerImpl = new VideoPlayerImpl(this);
|
||||
playerImpl.setup(layout);
|
||||
playerImpl.shouldUpdateOnProgress = true;
|
||||
|
||||
NotificationUtil.getInstance().createNotificationAndStartForeground(playerImpl, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user