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

Commit 00da4f6d authored by Selim Cinek's avatar Selim Cinek
Browse files

Always announcing wrong pattern now for talkback in pattern settings

Bug: 21797216
Change-Id: If86078f2d711a80e4a4aa28ce8817aed8244d30b
parent f0eebe7e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -580,6 +580,7 @@ public class ChooseLockPattern extends SettingsActivity {
            // the rest of the stuff varies enough that it is easier just to handle
            // on a case by case basis.
            mLockPatternView.setDisplayMode(DisplayMode.Correct);
            boolean announceAlways = false;

            switch (mUiStage) {
                case Introduction:
@@ -591,6 +592,7 @@ public class ChooseLockPattern extends SettingsActivity {
                case ChoiceTooShort:
                    mLockPatternView.setDisplayMode(DisplayMode.Wrong);
                    postClearPatternRunnable();
                    announceAlways = true;
                    break;
                case FirstChoiceValid:
                    break;
@@ -600,6 +602,7 @@ public class ChooseLockPattern extends SettingsActivity {
                case ConfirmWrong:
                    mLockPatternView.setDisplayMode(DisplayMode.Wrong);
                    postClearPatternRunnable();
                    announceAlways = true;
                    break;
                case ChoiceConfirmed:
                    break;
@@ -607,7 +610,7 @@ 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) {
            if (previousStage != stage || announceAlways) {
                mHeaderText.announceForAccessibility(mHeaderText.getText());
            }
        }