From 104464713f5ff9d4bdbbbb09d470f9889839cc29 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sun, 29 Dec 2013 19:38:21 +0100 Subject: [PATCH] Changed next button on last playlist item to stop playback. --- .../controldlna/mediarouter/MediaRouterPlayService.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java b/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java index b05ffcc..9719872 100644 --- a/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java +++ b/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java @@ -325,10 +325,11 @@ public class MediaRouterPlayService extends Service { else if (mRepeat) // Playlist over, repeat it. play(0); - else if (!mBound) { + else { // Playlist over, stop playback. - stopSelf(); - mPollingStatus = false; + stop(); + if (!mBound) + stopSelf(); } }