Merge "Only auth via FP when device is locked, when Assistant is on top" into oc-mr1-dev

am: 990d25bda0

Change-Id: Iffeee7386623128a4228cb8efc1d6fe5af19e865
This commit is contained in:
Kevin Chyn
2017-08-15 19:29:52 +00:00
committed by android-build-merger

View File

@@ -1157,10 +1157,16 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
}
}
private boolean shouldListenForFingerprintAssistant() {
return mAssistantVisible && mKeyguardOccluded
&& !mUserFingerprintAuthenticated.get(getCurrentUser(), false)
&& !mUserHasTrust.get(getCurrentUser(), false);
}
private boolean shouldListenForFingerprint() {
return (mKeyguardIsVisible || !mDeviceInteractive ||
(mBouncer && !mKeyguardGoingAway) || mGoingToSleep ||
(mAssistantVisible && mKeyguardOccluded))
shouldListenForFingerprintAssistant())
&& !mSwitchingUser && !isFingerprintDisabled(getCurrentUser())
&& !mKeyguardGoingAway;
}