calling back SetupFaceLock to clean up temporary gallery
This is done when the backup lock is complete or canceled. If successful, the permanent gallery is replaced with the new one. The temporary gallery is always deleted Also deletes the main gallery if the lock type is changed from facial recognition Change-Id: Id7b066fd852c7ba188d6e46b47391a362cbab40f
This commit is contained in:
@@ -367,9 +367,9 @@ public class ChooseLockPassword extends PreferenceActivity {
|
||||
}
|
||||
} else if (mUiStage == Stage.NeedToConfirm) {
|
||||
if (mFirstPin.equals(pin)) {
|
||||
mLockPatternUtils.clearLock();
|
||||
final boolean isFallback = getActivity().getIntent().getBooleanExtra(
|
||||
LockPatternUtils.LOCKSCREEN_BIOMETRIC_WEAK_FALLBACK, false);
|
||||
mLockPatternUtils.clearLock(isFallback);
|
||||
mLockPatternUtils.saveLockPassword(pin, mRequestedQuality, isFallback);
|
||||
getActivity().finish();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user