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

Commit e117fd0b authored by Udam Saini's avatar Udam Saini
Browse files

Hides retry button in setup wizard during confirm stage.

bug:24803305
Change-Id: Ib5f47bbd266f50e74515594cc90f73953f8ec8ce
parent 511107c0
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -136,6 +136,20 @@ public class SetupChooseLockPattern extends ChooseLockPattern {
            super.updateStage(stage);
            // Only enable the button for retry
            mRetryButton.setEnabled(stage == Stage.FirstChoiceValid);

            switch (stage) {
                case Introduction:
                case HelpScreen:
                case ChoiceTooShort:
                case FirstChoiceValid:
                    mRetryButton.setVisibility(View.VISIBLE);
                    break;
                case NeedToConfirm:
                case ConfirmWrong:
                case ChoiceConfirmed:
                    mRetryButton.setVisibility(View.INVISIBLE);
                    break;
            }
        }

        @Override