diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-08-18 17:10:35 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-08-18 17:10:35 -0700 |
commit | 74991465fb1493dd99fb7f04dfec4184fe99a380 (patch) | |
tree | 04f348b215653884b9dccea9a8421eeb9b6c34c6 /app | |
parent | 3546ef68b6b0e34537802fa44f4fe5fc68623504 (diff) | |
download | dsub-74991465fb1493dd99fb7f04dfec4184fe99a380.tar.gz dsub-74991465fb1493dd99fb7f04dfec4184fe99a380.tar.bz2 dsub-74991465fb1493dd99fb7f04dfec4184fe99a380.zip |
Make remove swipable from either direction
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java | 2 | ||||
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java index e56a8d34..b4e4be93 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java @@ -62,7 +62,7 @@ public class DownloadFragment extends SelectRecyclerFragment<DownloadFile> imple public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle bundle) { super.onCreateView(inflater, container, bundle); - ItemTouchHelper touchHelper = new ItemTouchHelper(new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN, ItemTouchHelper.LEFT) { + ItemTouchHelper touchHelper = new ItemTouchHelper(new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT) { @Override public boolean onMove(RecyclerView recyclerView, final RecyclerView.ViewHolder fromHolder, final RecyclerView.ViewHolder toHolder) { new SilentBackgroundTask<Void>(context) { diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java index ffd711d1..5e09e69c 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java @@ -185,7 +185,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis playlistView = (RecyclerView)rootView.findViewById(R.id.download_list); setupLayoutManager(playlistView, false); - ItemTouchHelper touchHelper = new ItemTouchHelper(new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN, ItemTouchHelper.LEFT) { + ItemTouchHelper touchHelper = new ItemTouchHelper(new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT) { @Override public boolean onMove(RecyclerView recyclerView, final RecyclerView.ViewHolder fromHolder, final RecyclerView.ViewHolder toHolder) { new SilentBackgroundTask<Void>(context) { |