diff --git a/app/build.gradle b/app/build.gradle index d5c8b95..58a965b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -35,5 +35,4 @@ dependencies { compile 'com.esotericsoftware:kryo:4.0.0' compile 'com.android.support:design:23.4.+' compile 'com.sothree.slidinguppanel:library:3.3.0' - compile group: 'org.eclipse.jetty', name: 'jetty-client', version:'8.1.16.v20140903' } diff --git a/app/src/main/java/net/nullsum/audinaut/util/DownloadFileItemHelperCallback.java b/app/src/main/java/net/nullsum/audinaut/util/DownloadFileItemHelperCallback.java index 4137c70..babc07c 100644 --- a/app/src/main/java/net/nullsum/audinaut/util/DownloadFileItemHelperCallback.java +++ b/app/src/main/java/net/nullsum/audinaut/util/DownloadFileItemHelperCallback.java @@ -4,9 +4,8 @@ import android.support.v7.widget.RecyclerView; import android.support.v7.widget.helper.ItemTouchHelper; import android.util.Log; -import org.eclipse.jetty.util.ArrayQueue; - -import java.util.Queue; +import java.util.ArrayDeque; +import java.util.Deque; import net.nullsum.audinaut.adapter.SectionAdapter; import net.nullsum.audinaut.fragments.SubsonicFragment; @@ -22,7 +21,7 @@ public class DownloadFileItemHelperCallback extends ItemTouchHelper.SimpleCallba private boolean mainList; private BackgroundTask pendingTask = null; - private Queue pendingOperations = new ArrayQueue(); + private Deque pendingOperations = new ArrayDeque(); public DownloadFileItemHelperCallback(SubsonicFragment fragment, boolean mainList) { super(ItemTouchHelper.UP | ItemTouchHelper.DOWN, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT);