|
|
@ -1083,6 +1083,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
ibTrash.setOnLongClickListener(this);
|
|
|
|
ibTrash.setOnLongClickListener(this);
|
|
|
|
ibJunk.setOnClickListener(this);
|
|
|
|
ibJunk.setOnClickListener(this);
|
|
|
|
ibInbox.setOnClickListener(this);
|
|
|
|
ibInbox.setOnClickListener(this);
|
|
|
|
|
|
|
|
ibInbox.setOnLongClickListener(this);
|
|
|
|
ibMore.setOnClickListener(this);
|
|
|
|
ibMore.setOnClickListener(this);
|
|
|
|
ibTools.setOnClickListener(this);
|
|
|
|
ibTools.setOnClickListener(this);
|
|
|
|
|
|
|
|
|
|
|
@ -1199,6 +1200,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
ibTrash.setOnLongClickListener(null);
|
|
|
|
ibTrash.setOnLongClickListener(null);
|
|
|
|
ibJunk.setOnClickListener(null);
|
|
|
|
ibJunk.setOnClickListener(null);
|
|
|
|
ibInbox.setOnClickListener(null);
|
|
|
|
ibInbox.setOnClickListener(null);
|
|
|
|
|
|
|
|
ibInbox.setOnLongClickListener(null);
|
|
|
|
ibMore.setOnClickListener(null);
|
|
|
|
ibMore.setOnClickListener(null);
|
|
|
|
ibTools.setOnClickListener(null);
|
|
|
|
ibTools.setOnClickListener(null);
|
|
|
|
|
|
|
|
|
|
|
@ -4446,6 +4448,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
} else if (id == R.id.tvFolder) {
|
|
|
|
} else if (id == R.id.tvFolder) {
|
|
|
|
onGotoFolder(message);
|
|
|
|
onGotoFolder(message);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
|
|
|
|
} else if (id == R.id.ibInbox) {
|
|
|
|
|
|
|
|
boolean inJunk = EntityFolder.JUNK.equals(message.folderType);
|
|
|
|
|
|
|
|
if (inJunk)
|
|
|
|
|
|
|
|
onActionJunk(message);
|
|
|
|
|
|
|
|
return inJunk;
|
|
|
|
} else if (id == R.id.ibImportance) {
|
|
|
|
} else if (id == R.id.ibImportance) {
|
|
|
|
int importance = (((message.ui_importance == null ? 1 : message.ui_importance) + 2) % 3);
|
|
|
|
int importance = (((message.ui_importance == null ? 1 : message.ui_importance) + 2) % 3);
|
|
|
|
onMenuSetImportance(message, importance);
|
|
|
|
onMenuSetImportance(message, importance);
|
|
|
|