Merge "Set the talkback focus to the header text when Stage is NeedToConfirm" into udc-dev
This commit is contained in:
@@ -798,7 +798,12 @@ public class ChooseLockPattern extends SettingsActivity {
|
||||
// If the stage changed, announce the header for accessibility. This
|
||||
// is a no-op when accessibility is disabled.
|
||||
if (previousStage != stage || announceAlways) {
|
||||
mHeaderText.announceForAccessibility(mHeaderText.getText());
|
||||
if (stage == Stage.NeedToConfirm) {
|
||||
// If the Stage is NeedToConfirm, move the a11y focus to the header.
|
||||
mHeaderText.requestAccessibilityFocus();
|
||||
} else {
|
||||
mHeaderText.announceForAccessibility(mHeaderText.getText());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user