PlaybackService will now stopForeground when playback completes and
there is no next episode
This commit is contained in:
parent
6db48a6f50
commit
af2595f2d0
@ -537,6 +537,8 @@ public class PlaybackService extends Service {
|
|||||||
Log.d(TAG,
|
Log.d(TAG,
|
||||||
"No more episodes available to play; Reloading current episode");
|
"No more episodes available to play; Reloading current episode");
|
||||||
startWhenPrepared = false;
|
startWhenPrepared = false;
|
||||||
|
stopForeground(true);
|
||||||
|
stopWidgetUpdater();
|
||||||
}
|
}
|
||||||
int notificationCode = 0;
|
int notificationCode = 0;
|
||||||
if (media.getMime_type().startsWith("audio")) {
|
if (media.getMime_type().startsWith("audio")) {
|
||||||
@ -549,12 +551,6 @@ public class PlaybackService extends Service {
|
|||||||
refreshRemoteControlClientState();
|
refreshRemoteControlClientState();
|
||||||
sendNotificationBroadcast(NOTIFICATION_TYPE_RELOAD,
|
sendNotificationBroadcast(NOTIFICATION_TYPE_RELOAD,
|
||||||
notificationCode);
|
notificationCode);
|
||||||
/*
|
|
||||||
* } else { if (AppConfig.DEBUG) Log.d(TAG, "Stopping playback");
|
|
||||||
* stopWidgetUpdater(); setStatus(PlayerStatus.STOPPED);
|
|
||||||
* stopForeground(true); }
|
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user