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
1 changed files with 2 additions and 0 deletions

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