aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-02-21 19:28:09 -0800
committerScott Jackson <daneren2005@gmail.com>2014-02-21 19:28:09 -0800
commit961a1ef5df15620c794aa8e062dd9594eb8ecb00 (patch)
tree3f6e5c25ada7b519e1176f008a11b5e258db2662 /src/github/daneren2005
parentf862a48ef1390deb70420334d02549bdb8f3ec4c (diff)
downloaddsub-961a1ef5df15620c794aa8e062dd9594eb8ecb00.tar.gz
dsub-961a1ef5df15620c794aa8e062dd9594eb8ecb00.tar.bz2
dsub-961a1ef5df15620c794aa8e062dd9594eb8ecb00.zip
Fix pressing play while restoring playing two songs at once
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index 6a307152..e8829aa6 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -368,7 +368,7 @@ public class DownloadService extends Service {
}
}
- public void restore(List<MusicDirectory.Entry> songs, List<MusicDirectory.Entry> toDelete, int currentPlayingIndex, int currentPlayingPosition) {
+ public synchronized void restore(List<MusicDirectory.Entry> songs, List<MusicDirectory.Entry> toDelete, int currentPlayingIndex, int currentPlayingPosition) {
SharedPreferences prefs = Util.getPreferences(this);
remoteState = RemoteControlState.values()[prefs.getInt(Constants.PREFERENCES_KEY_CONTROL_MODE, 0)];
if(remoteState != RemoteControlState.LOCAL) {