mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 08:29:24 +00:00
Added accessibility answer menu
This commit is contained in:
parent
b27c122672
commit
819df23aec
1 changed files with 6 additions and 0 deletions
|
@ -7210,6 +7210,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
context.getString(expanded ? R.string.title_accessibility_collapse : R.string.title_accessibility_expand)));
|
||||
ibExpander.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
|
||||
|
||||
info.addAction(new AccessibilityNodeInfo.AccessibilityAction(R.id.ibAnswer,
|
||||
context.getString(R.string.title_reply)));
|
||||
|
||||
if (ibAvatar.getVisibility() == View.VISIBLE && ibAvatar.isEnabled())
|
||||
info.addAction(new AccessibilityNodeInfo.AccessibilityAction(R.id.ibAvatar,
|
||||
context.getString(R.string.title_accessibility_view_contact)));
|
||||
|
@ -7249,6 +7252,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
if (action == R.id.ibExpander) {
|
||||
onToggleMessage(message);
|
||||
return true;
|
||||
} else if (action == R.id.ibAnswer) {
|
||||
onActionAnswer(message, view);
|
||||
return true;
|
||||
} else if (action == R.id.ibAvatar) {
|
||||
onViewContact(message);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue