Fix bug with TalkBack not reading out SplitInstructionsView
This CL sets an accessibility title so that TalkBack and other tools will properly read out the instructions on SplitInstructionsView. Fixes: 323461342 Flag: ACONFIG com.android.wm.shell.enable_split_contextual TRUNKFOOD Test: TalkBack announces the instructions immediately when the view appears, and is not interrupted. Change-Id: I1666f0c374d40b31d732d3cca529f03a7f2f7f28
This commit is contained in:
@@ -130,6 +130,9 @@ public class SplitInstructionsView extends LinearLayout {
|
||||
cancelTextView.setOnClickListener((v) -> exitSplitSelection());
|
||||
instructionTextView.setText(R.string.toast_contextual_split_select_app);
|
||||
}
|
||||
|
||||
// Set accessibility title, will be announced by a11y tools.
|
||||
instructionTextView.setAccessibilityPaneTitle(instructionTextView.getText());
|
||||
}
|
||||
|
||||
private void exitSplitSelection() {
|
||||
|
||||
Reference in New Issue
Block a user