kopia lustrzana https://github.com/TeamNewPipe/NewPipe
Initialize player notification asap
Otherwise Android's foreground services implementation would complainpull/4362/head
rodzic
dbdc04c45e
commit
fbcdaa77e3
|
@ -103,6 +103,8 @@ public final class MainPlayer extends Service {
|
||||||
playerImpl = new VideoPlayerImpl(this);
|
playerImpl = new VideoPlayerImpl(this);
|
||||||
playerImpl.setup(layout);
|
playerImpl.setup(layout);
|
||||||
playerImpl.shouldUpdateOnProgress = true;
|
playerImpl.shouldUpdateOnProgress = true;
|
||||||
|
|
||||||
|
NotificationUtil.getInstance().createNotificationAndStartForeground(playerImpl, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Ładowanie…
Reference in New Issue