aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-07-09 06:39:53 -0700
committerScott Jackson <daneren2005@gmail.com>2013-07-09 06:39:53 -0700
commitc3fd9c732666e8a48fe372fbe17bf67500a8f8ae (patch)
tree530581c26d881cd137ff2063bb158e9e1664bd79
parenta74776777857fd47ba2ea828f9e93a860c379393 (diff)
downloaddsub-c3fd9c732666e8a48fe372fbe17bf67500a8f8ae.tar.gz
dsub-c3fd9c732666e8a48fe372fbe17bf67500a8f8ae.tar.bz2
dsub-c3fd9c732666e8a48fe372fbe17bf67500a8f8ae.zip
Fix toggling off Gapless Playback repeating same song until restart
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java2
1 files changed, 2 insertions, 0 deletions
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;
}