Browse Source

Disable swipe when multiple selecting

main
M66B 6 years ago
parent
commit
ae37365545
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/src/main/java/eu/faircode/email/FragmentMessages.java

+ 3
- 0
app/src/main/java/eu/faircode/email/FragmentMessages.java View File

@ -282,6 +282,9 @@ public class FragmentMessages extends FragmentEx {
if (!prefs.getBoolean("swipe", true)) if (!prefs.getBoolean("swipe", true))
return 0; return 0;
if (selectionTracker != null && selectionTracker.hasSelection())
return 0;
int pos = viewHolder.getAdapterPosition(); int pos = viewHolder.getAdapterPosition();
if (pos == RecyclerView.NO_POSITION) if (pos == RecyclerView.NO_POSITION)
return 0; return 0;


Loading…
Cancel
Save