Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a404e17 authored by Stefan Andonian's avatar Stefan Andonian
Browse files

[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
parent cd93849c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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)