Remove old/unused method of enable fp auth while occluded

shouldListenForFingerprint() had a parentheses bug which is now
removed as well. the function is the same as before now.

Bug: 37875884

Test: manual
Change-Id: I30b68fe40466e0abbb3f15360551f2b279ee246a
This commit is contained in:
Kevin Chyn
2017-05-23 11:36:35 -07:00
parent f0268b0bb7
commit 29d7f4910c

View File

@@ -299,7 +299,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
}
};
private boolean mEnableNextFingerprint;
private SparseBooleanArray mUserHasTrust = new SparseBooleanArray();
private SparseBooleanArray mUserTrustIsManaged = new SparseBooleanArray();
private SparseBooleanArray mUserFingerprintAuthenticated = new SparseBooleanArray();
@@ -315,11 +314,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
return sCurrentUser;
}
public void enableNextFingerprint() {
mEnableNextFingerprint = true;
if (DEBUG) Log.v(TAG, "enabling next fingerprint");
}
@Override
public void onTrustChanged(boolean enabled, int userId, int flags) {
mUserHasTrust.put(userId, enabled);
@@ -1133,8 +1127,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
private boolean shouldListenForFingerprint() {
return (mKeyguardIsVisible || !mDeviceInteractive ||
(mBouncer && !mKeyguardGoingAway) || mGoingToSleep)
&& (!mSwitchingUser && !isFingerprintDisabled(getCurrentUser()) ||
mEnableNextFingerprint);
&& !mSwitchingUser && !isFingerprintDisabled(getCurrentUser());
}
private void startListeningForFingerprint() {
@@ -1161,11 +1154,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
private void stopListeningForFingerprint() {
if (DEBUG) Log.v(TAG, "stopListeningForFingerprint()");
if (mEnableNextFingerprint) {
if (DEBUG) Log.v(TAG, "listening to one more fingerprint");
return;
}
if (mFingerprintRunningState == FINGERPRINT_STATE_RUNNING) {
mFingerprintCancelSignal.cancel();
mFingerprintCancelSignal = null;
@@ -1471,7 +1459,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
private void handleKeyguardReset() {
if (DEBUG) Log.d(TAG, "handleKeyguardReset");
updateFingerprintListeningState();
mEnableNextFingerprint = false;
mNeedsSlowUnlockTransition = resolveNeedsSlowUnlockTransition();
}