aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/github/daneren2005/dsub/fragments/NowPlayingFragment.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java
index 198e1779..4a720ead 100644
--- a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java
+++ b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java
@@ -521,9 +521,16 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
});
playlistView.setDropListener(new DragSortListView.DropListener() {
@Override
- public void drop(int from, int to) {
- getDownloadService().swap(true, from, to);
- onDownloadListChanged();
+ public void drop(final int from, final int to) {
+ new SilentBackgroundTask<Void>(context) {
+ @Override
+ protected Void doInBackground() throws Throwable {
+ getDownloadService().swap(true, from, to);
+ onDownloadListChanged();
+
+ return null;
+ }
+ }.execute();
}
});
playlistView.setRemoveListener(new DragSortListView.RemoveListener() {