PlaybackService will now stopForeground when playback completes and

there is no next episode
This commit is contained in:
daniel oeh 2012-09-04 13:10:04 +02:00
parent 6db48a6f50
commit af2595f2d0
1 changed files with 2 additions and 6 deletions

View File

@ -537,6 +537,8 @@ public class PlaybackService extends Service {
Log.d(TAG,
"No more episodes available to play; Reloading current episode");
startWhenPrepared = false;
stopForeground(true);
stopWidgetUpdater();
}
int notificationCode = 0;
if (media.getMime_type().startsWith("audio")) {
@ -549,12 +551,6 @@ public class PlaybackService extends Service {
refreshRemoteControlClientState();
sendNotificationBroadcast(NOTIFICATION_TYPE_RELOAD,
notificationCode);
/*
* } else { if (AppConfig.DEBUG) Log.d(TAG, "Stopping playback");
* stopWidgetUpdater(); setStatus(PlayerStatus.STOPPED);
* stopForeground(true); }
*/
}
};