Browse Source

Fixed threaded messages actions

main
M66B 6 years ago
parent
commit
7e55dca15f
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/src/main/java/eu/faircode/email/AdapterMessage.java
  2. +1
    -1
      app/src/main/java/eu/faircode/email/FragmentMessages.java

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

@ -263,7 +263,7 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
final TupleMessageEx message = getItem(pos);
PopupMenu popupMenu = new PopupMenu(context, itemView);
if (!EntityFolder.OUTBOX.equals(message.folderType)) {
if (!message.threaded && !EntityFolder.OUTBOX.equals(message.folderType)) {
popupMenu.getMenu().add(Menu.NONE, action_flag, 1, message.ui_flagged ? R.string.title_unflag : R.string.title_flag);
popupMenu.getMenu().add(Menu.NONE, action_seen, 2, message.ui_seen ? R.string.title_unseen : R.string.title_seen);
}


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

@ -181,7 +181,7 @@ public class FragmentMessages extends FragmentEx {
return 0;
TupleMessageEx message = ((AdapterMessage) rvMessage.getAdapter()).getCurrentList().get(pos);
if (EntityFolder.OUTBOX.equals(message.folderType))
if (message.threaded || EntityFolder.OUTBOX.equals(message.folderType))
return 0;
return makeMovementFlags(0, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT);


Loading…
Cancel
Save