Added archive and trash to accessibility menu

pull/212/head
M66B 2 years ago
parent 502dc42ae6
commit 47ab5f5630

@ -7214,6 +7214,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
info.addAction(new AccessibilityNodeInfo.AccessibilityAction(R.id.ibAnswer,
context.getString(R.string.title_reply)));
info.addAction(new AccessibilityNodeInfo.AccessibilityAction(R.id.ibArchive,
context.getString(R.string.title_archive)));
info.addAction(new AccessibilityNodeInfo.AccessibilityAction(R.id.ibTrash,
context.getString(R.string.title_trash)));
if (ibAvatar.getVisibility() == View.VISIBLE && ibAvatar.isEnabled())
info.addAction(new AccessibilityNodeInfo.AccessibilityAction(R.id.ibAvatar,
context.getString(R.string.title_accessibility_view_contact)));
@ -7256,6 +7262,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} else if (action == R.id.ibAnswer) {
onActionAnswer(message, view);
return true;
} else if (action == R.id.ibArchive) {
onActionArchive(message);
return true;
} else if (action == R.id.ibTrash) {
onActionTrash(message, false);
return true;
} else if (action == R.id.ibAvatar) {
onViewContact(message);
return true;

Loading…
Cancel
Save