OSDN Git Service

Do not relaunch ConfirmLock after rotation
authorRubin Xu <rubinxu@google.com>
Thu, 21 Mar 2019 15:56:52 +0000 (15:56 +0000)
committerRubin Xu <rubinxu@google.com>
Thu, 21 Mar 2019 17:44:57 +0000 (17:44 +0000)
Bug: 122712696
Test: manual
Change-Id: I44fdbdb54b42c3a680bd83fc21c00e5769b83151

src/com/android/settings/biometrics/BiometricEnrollIntroduction.java

index 097ffe2..81b70b5 100644 (file)
@@ -140,7 +140,7 @@ public abstract class BiometricEnrollIntroduction extends BiometricEnrollBase
         if (!mHasPassword) {
             // No password registered, launch into enrollment wizard.
             launchChooseLock();
-        } else {
+        } else if (!mLaunchedConfirmLock || mToken == null) {
             launchConfirmLock(getConfirmLockTitleResId(), getChallenge());
         }
     }