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

Commit f5b4a238 authored by Shawn Lin's avatar Shawn Lin Committed by Android (Google) Code Review
Browse files

Merge "Set the talkback focus to the header text when Stage is NeedToConfirm" into udc-dev

parents ee54d713 4fef3fac
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -798,9 +798,14 @@ 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) {
                if (stage == Stage.NeedToConfirm) {
                    // If the Stage is NeedToConfirm, move the a11y focus to the header.
                    mHeaderText.requestAccessibilityFocus();
                } else {
                    mHeaderText.announceForAccessibility(mHeaderText.getText());
                }
            }
        }

        protected void updateFooterLeftButton(Stage stage) {
            if (stage.leftMode == LeftButtonMode.Gone) {