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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user