1
0
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:
Stypox 2020-10-02 15:17:04 +02:00
parent dbdc04c45e
commit fbcdaa77e3
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -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