Simplification

pull/182/head
M66B 4 years ago
parent e99b883620
commit 2301ce32f2

@ -3595,10 +3595,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}.execute(context, owner, args, "message:move:draft");
}
private void onActionNoJunk(TupleMessageEx message) {
properties.move(message.id, EntityFolder.INBOX);
}
private void onActionArchive(TupleMessageEx message) {
properties.move(message.id, EntityFolder.ARCHIVE);
}
@ -3659,9 +3655,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
popupMenu.getMenu().findItem(R.id.menu_set_importance_normal).setEnabled(!EntityMessage.PRIORITIY_NORMAL.equals(i));
popupMenu.getMenu().findItem(R.id.menu_set_importance_high).setEnabled(!EntityMessage.PRIORITIY_HIGH.equals(i));
popupMenu.getMenu().findItem(R.id.menu_no_junk).setEnabled(message.uid != null && !message.folderReadOnly);
popupMenu.getMenu().findItem(R.id.menu_no_junk).setVisible(EntityFolder.JUNK.equals(message.folderType));
popupMenu.getMenu().findItem(R.id.menu_copy).setEnabled(message.uid != null && !message.folderReadOnly);
popupMenu.getMenu().findItem(R.id.menu_copy).setVisible(message.accountProtocol == EntityAccount.TYPE_IMAP);
@ -3718,9 +3711,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
case R.id.menu_set_importance_high:
onMenuSetImportance(message, EntityMessage.PRIORITIY_HIGH);
return true;
case R.id.menu_no_junk:
onActionNoJunk(message);
return true;
case R.id.menu_copy:
onActionMove(message, true);
return true;

@ -32,10 +32,6 @@
</menu>
</item>
<item
android:id="@+id/menu_no_junk"
android:title="@string/title_no_junk" />
<item
android:id="@+id/menu_copy"
android:title="@string/title_copy_to" />

Loading…
Cancel
Save