Merge pull request #3458 from ByteHamster/store-foreground-state-correctly
Fixed another phantom service is running notification
This commit is contained in:
commit
a6bffa797a
|
@ -451,7 +451,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||||
notificationBuilder.loadIcon(getPlayable());
|
notificationBuilder.loadIcon(getPlayable());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
startForeground(NOTIFICATION_ID, notificationBuilder.build());
|
stateManager.startForeground(NOTIFICATION_ID, notificationBuilder.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
|
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
|
||||||
|
|
Loading…
Reference in New Issue