Replace Jetty ArrayQueue

This commit is contained in:
Andrew Rabert 2017-03-05 02:28:01 -05:00
parent f89cff23bf
commit 25dd053834
2 changed files with 3 additions and 5 deletions

View File

@ -35,5 +35,4 @@ dependencies {
compile 'com.esotericsoftware:kryo:4.0.0' compile 'com.esotericsoftware:kryo:4.0.0'
compile 'com.android.support:design:23.4.+' compile 'com.android.support:design:23.4.+'
compile 'com.sothree.slidinguppanel:library:3.3.0' compile 'com.sothree.slidinguppanel:library:3.3.0'
compile group: 'org.eclipse.jetty', name: 'jetty-client', version:'8.1.16.v20140903'
} }

View File

@ -4,9 +4,8 @@ import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.helper.ItemTouchHelper; import android.support.v7.widget.helper.ItemTouchHelper;
import android.util.Log; import android.util.Log;
import org.eclipse.jetty.util.ArrayQueue; import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Queue;
import net.nullsum.audinaut.adapter.SectionAdapter; import net.nullsum.audinaut.adapter.SectionAdapter;
import net.nullsum.audinaut.fragments.SubsonicFragment; import net.nullsum.audinaut.fragments.SubsonicFragment;
@ -22,7 +21,7 @@ public class DownloadFileItemHelperCallback extends ItemTouchHelper.SimpleCallba
private boolean mainList; private boolean mainList;
private BackgroundTask pendingTask = null; private BackgroundTask pendingTask = null;
private Queue pendingOperations = new ArrayQueue(); private Deque pendingOperations = new ArrayDeque();
public DownloadFileItemHelperCallback(SubsonicFragment fragment, boolean mainList) { public DownloadFileItemHelperCallback(SubsonicFragment fragment, boolean mainList) {
super(ItemTouchHelper.UP | ItemTouchHelper.DOWN, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT); super(ItemTouchHelper.UP | ItemTouchHelper.DOWN, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT);