Merge "Do not let device sleep after successful auth" into qt-r1-dev am: 972793ea20

am: d050a6b90d

Change-Id: I902a851c618f16869b81e4ac6c98917dc79d1296
This commit is contained in:
Lucas Dupin
2019-07-16 09:54:13 -07:00
committed by android-build-merger
2 changed files with 2 additions and 0 deletions

View File

@@ -237,6 +237,7 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
MIN_DRAG_SIZE, getResources().getDisplayMetrics())
&& !mUpdateMonitor.isFaceDetectionRunning()) {
mUpdateMonitor.requestFaceAuth();
mCallback.userActivity();
showMessage(null, null);
}
}

View File

@@ -260,6 +260,7 @@ public class BiometricUnlockController extends KeyguardUpdateMonitorCallback {
boolean unlockAllowed = mKeyguardBypassController.onBiometricAuthenticated(
biometricSourceType);
if (unlockAllowed) {
mKeyguardViewMediator.userActivity();
startWakeAndUnlock(biometricSourceType);
} else {
Log.d(TAG, "onBiometricAuthenticated aborted by bypass controller");