From c3fd9c732666e8a48fe372fbe17bf67500a8f8ae Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 9 Jul 2013 06:39:53 -0700 Subject: Fix toggling off Gapless Playback repeating same song until restart --- .../src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'subsonic-android/src') diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index ea9233f2..e8803ad4 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -555,6 +555,8 @@ public class DownloadServiceImpl extends Service implements DownloadService { SharedPreferences prefs = Util.getPreferences(DownloadServiceImpl.this); boolean gaplessPlayback = prefs.getBoolean(Constants.PREFERENCES_KEY_GAPLESS_PLAYBACK, true); if(!gaplessPlayback) { + nextPlaying = null; + nextPlayerState = IDLE; return; } -- cgit v1.2.3