From 27faa86cb0488d6c77dc5ff9946e58ae9ca40485 Mon Sep 17 00:00:00 2001 From: yueg Date: Tue, 1 May 2018 14:41:08 -0700 Subject: Set active audio route selected. So TalkBack user know if an audio route is selected or not. Bug: 74238896 Test: manual PiperOrigin-RevId: 194999585 Change-Id: I849352d87dbbfcfb3d16e148daa2e0bcf0af0158 --- .../android/incallui/audioroute/AudioRouteSelectorDialogFragment.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'java') diff --git a/java/com/android/incallui/audioroute/AudioRouteSelectorDialogFragment.java b/java/com/android/incallui/audioroute/AudioRouteSelectorDialogFragment.java index 8d0c9525e..d6946d8de 100644 --- a/java/com/android/incallui/audioroute/AudioRouteSelectorDialogFragment.java +++ b/java/com/android/incallui/audioroute/AudioRouteSelectorDialogFragment.java @@ -149,6 +149,7 @@ public class AudioRouteSelectorDialogFragment extends BottomSheetDialogFragment if ((audioState.getSupportedRouteMask() & itemRoute) == 0) { item.setVisibility(View.GONE); } else if (audioState.getRoute() == itemRoute) { + item.setSelected(true); item.setTextColor(selectedColor); item.setCompoundDrawableTintList(ColorStateList.valueOf(selectedColor)); item.setCompoundDrawableTintMode(Mode.SRC_ATOP); @@ -169,6 +170,7 @@ public class AudioRouteSelectorDialogFragment extends BottomSheetDialogFragment (TextView) getLayoutInflater().inflate(R.layout.audioroute_item, null, false); textView.setText(getAliasName(bluetoothDevice)); if (selected) { + textView.setSelected(true); textView.setTextColor(selectedColor); textView.setCompoundDrawableTintList(ColorStateList.valueOf(selectedColor)); textView.setCompoundDrawableTintMode(Mode.SRC_ATOP); -- cgit v1.2.3