Browse Source

Disable swipe for expanded messages

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

+ 4
- 1
app/src/main/java/eu/faircode/email/FragmentMessages.java View File

@ -230,7 +230,10 @@ public class FragmentMessages extends FragmentEx {
return 0;
TupleMessageEx message = ((AdapterMessage) rvMessage.getAdapter()).getCurrentList().get(pos);
if (message == null || viewType != AdapterMessage.ViewType.THREAD || EntityFolder.OUTBOX.equals(message.folderType))
if (message == null ||
expanded.contains(message.id) ||
viewType != AdapterMessage.ViewType.THREAD ||
EntityFolder.OUTBOX.equals(message.folderType))
return 0;
return makeMovementFlags(0, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT);


Loading…
Cancel
Save