summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Stefan Andonian <andonian@google.com> 2024-11-20 01:12:09 +0000
committer Stefan Andonian <andonian@google.com> 2024-11-20 05:32:36 +0000
commit5a404e17c67cf88ae27a18186982e19c39a07240 (patch)
treebaeab5b30b0f27f56dced309e06db573b3f735fb
parentcd93849c2e5da9422a07c2e66b081b00221000de (diff)
[Record Issue Tile] Add Selected to visual Checkmark for Accessibility
Bug: 373236584 Test: Verified manually that this works with Talkback. Flag: EXEMPT bug fix Change-Id: I7236052d8bac0153f4ab5db1cc123240f82299a0
-rw-r--r--packages/SystemUI/src/com/android/systemui/recordissue/RecordIssueDialogDelegate.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recordissue/RecordIssueDialogDelegate.kt b/packages/SystemUI/src/com/android/systemui/recordissue/RecordIssueDialogDelegate.kt
index 02b2bb1585bd..d94f00fff400 100644
--- a/packages/SystemUI/src/com/android/systemui/recordissue/RecordIssueDialogDelegate.kt
+++ b/packages/SystemUI/src/com/android/systemui/recordissue/RecordIssueDialogDelegate.kt
@@ -171,9 +171,16 @@ constructor(
}
ALL_ISSUE_TYPES.keys.forEach {
popupMenu.menu.add(it).apply {
+ // Set this for every item in the list to ensure equal spacing. Set it to
+ // transparent for non-selected items so icon is only visible for selected element.
setIcon(R.drawable.arrow_pointing_down)
if (it != state.issueTypeRes) {
iconTintList = ColorStateList.valueOf(Color.TRANSPARENT)
+ } else {
+ contentDescription =
+ context.getString(com.android.internal.R.string.selected) +
+ " " +
+ context.getString(it)
}
intent = Intent().putExtra(EXTRA_ISSUE_TYPE_RES, it)