Only acquire FPM if feature is available
Test: Boot non-fp device, observe no wtf Change-Id: If32b2370413f8bfe1477af52809c76e8c892cafa Fixes: 32976626
This commit is contained in:
@@ -1112,7 +1112,9 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
|
||||
mTrustManager.registerTrustListener(this);
|
||||
new LockPatternUtils(context).registerStrongAuthTracker(mStrongAuthTracker);
|
||||
|
||||
mFpm = (FingerprintManager) context.getSystemService(Context.FINGERPRINT_SERVICE);
|
||||
if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) {
|
||||
mFpm = (FingerprintManager) context.getSystemService(Context.FINGERPRINT_SERVICE);
|
||||
}
|
||||
updateFingerprintListeningState();
|
||||
if (mFpm != null) {
|
||||
mFpm.addLockoutResetCallback(mLockoutResetCallback);
|
||||
|
||||
Reference in New Issue
Block a user