From 961a1ef5df15620c794aa8e062dd9594eb8ecb00 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 21 Feb 2014 19:28:09 -0800 Subject: Fix pressing play while restoring playing two songs at once --- src/github/daneren2005/dsub/service/DownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/github/daneren2005') 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 songs, List toDelete, int currentPlayingIndex, int currentPlayingPosition) { + public synchronized void restore(List songs, List 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) { -- cgit v1.2.3