Do not try to display notification two times
The Thread is interrupted which leads to an empty notification
This commit is contained in:
parent
7c4b98be59
commit
1f8f2be9ab
|
@ -497,7 +497,6 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
|||
}
|
||||
mediaPlayer.playMediaObject(playable, stream, startWhenPrepared, prepareImmediately);
|
||||
}
|
||||
setupNotification(playable);
|
||||
}
|
||||
|
||||
return Service.START_NOT_STICKY;
|
||||
|
@ -1218,7 +1217,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
|||
notificationSetupThread.interrupt();
|
||||
}
|
||||
if (playable == null) {
|
||||
Log.d(TAG, "setupNotification: playable is null");
|
||||
Log.d(TAG, "setupNotification: playable is null" + Log.getStackTraceString(new Exception()));
|
||||
if (!started) {
|
||||
stopService();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue