Do not display notification on configuration changed if no media item is playing
This commit is contained in:
parent
1fb50169ff
commit
8b345c2405
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class PlayerService : Service(), Player.Listener, PlaybackStatsListener.Callback
|
|||
}
|
||||
|
||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||
if (bitmapProvider.setDefaultBitmap()) {
|
||||
if (bitmapProvider.setDefaultBitmap() && player.currentMediaItem != null) {
|
||||
notificationManager.notify(NotificationId, notification())
|
||||
}
|
||||
super.onConfigurationChanged(newConfig)
|
||||
|
|
Loading…
Reference in a new issue