Modified episode swipe directions
- Allow queue swiping in both directions - Do not allow swiping on tabbed screens where it interferes with tab switching
This commit is contained in:
parent
363c3614f8
commit
9d5abba312
|
@ -54,7 +54,8 @@ public class FavoriteEpisodesFragment extends EpisodesListFragment {
|
|||
emptyView.setTitle(R.string.no_fav_episodes_head_label);
|
||||
emptyView.setMessage(R.string.no_fav_episodes_label);
|
||||
|
||||
ItemTouchHelper.SimpleCallback simpleItemTouchCallback = new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT) {
|
||||
ItemTouchHelper.SimpleCallback simpleItemTouchCallback = new ItemTouchHelper.SimpleCallback(0,
|
||||
ItemTouchHelper.LEFT) {
|
||||
@Override
|
||||
public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {
|
||||
return false;
|
||||
|
|
|
@ -54,7 +54,8 @@ public class NewEpisodesFragment extends EpisodesListFragment {
|
|||
emptyView.setTitle(R.string.no_new_episodes_head_label);
|
||||
emptyView.setMessage(R.string.no_new_episodes_label);
|
||||
|
||||
ItemTouchHelper.SimpleCallback simpleItemTouchCallback = new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT) {
|
||||
ItemTouchHelper.SimpleCallback simpleItemTouchCallback = new ItemTouchHelper.SimpleCallback(0,
|
||||
ItemTouchHelper.RIGHT) {
|
||||
@Override
|
||||
public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {
|
||||
return false;
|
||||
|
|
|
@ -503,7 +503,8 @@ public class QueueFragment extends Fragment {
|
|||
registerForContextMenu(recyclerView);
|
||||
|
||||
itemTouchHelper = new ItemTouchHelper(
|
||||
new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN, ItemTouchHelper.RIGHT) {
|
||||
new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN,
|
||||
ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT) {
|
||||
|
||||
// Position tracking whilst dragging
|
||||
int dragFrom = -1;
|
||||
|
|
Loading…
Reference in New Issue