mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Added long press importance
This commit is contained in:
parent
beaa70cd05
commit
8b8d5746ed
1 changed files with 7 additions and 1 deletions
|
@ -943,6 +943,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
ibTranslate.setOnLongClickListener(this);
|
||||
ibForceLight.setOnClickListener(this);
|
||||
ibImportance.setOnClickListener(this);
|
||||
ibImportance.setOnLongClickListener(this);
|
||||
ibHide.setOnClickListener(this);
|
||||
ibSeen.setOnClickListener(this);
|
||||
ibAnswer.setOnClickListener(this);
|
||||
|
@ -1042,6 +1043,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
ibTranslate.setOnLongClickListener(null);
|
||||
ibForceLight.setOnClickListener(null);
|
||||
ibImportance.setOnClickListener(null);
|
||||
ibImportance.setOnLongClickListener(null);
|
||||
ibHide.setOnClickListener(null);
|
||||
ibSeen.setOnClickListener(null);
|
||||
ibAnswer.setOnClickListener(null);
|
||||
|
@ -3644,9 +3646,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
if (id == R.id.ibFlagged) {
|
||||
onMenuColoredStar(message);
|
||||
return true;
|
||||
} else if (view.getId() == R.id.tvFolder) {
|
||||
} else if (id == R.id.tvFolder) {
|
||||
onGotoFolder(message);
|
||||
return true;
|
||||
} else if (id == R.id.ibImportance) {
|
||||
int importance = (((message.ui_importance == null ? 1 : message.ui_importance) + 2) % 3);
|
||||
onMenuSetImportance(message, importance);
|
||||
return true;
|
||||
} else if (id == R.id.ibNotes) {
|
||||
onActionCopyNote(message);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue