Merge pull request #3458 from ByteHamster/store-foreground-state-correctly

Fixed another phantom service is running notification
This commit is contained in:
H. Lehmann 2019-09-27 12:43:03 +02:00 committed by GitHub
commit a6bffa797a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
notificationBuilder.loadIcon(getPlayable());
}
}
startForeground(NOTIFICATION_ID, notificationBuilder.build());
stateManager.startForeground(NOTIFICATION_ID, notificationBuilder.build());
}
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);