Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f12426d authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Only acquire FPM if feature is available

Test: Boot non-fp device, observe no wtf
Change-Id: If32b2370413f8bfe1477af52809c76e8c892cafa
Fixes: 32976626
parent 683ed6c3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1112,7 +1112,9 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
        mTrustManager.registerTrustListener(this);
        new LockPatternUtils(context).registerStrongAuthTracker(mStrongAuthTracker);

        if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) {
            mFpm = (FingerprintManager) context.getSystemService(Context.FINGERPRINT_SERVICE);
        }
        updateFingerprintListeningState();
        if (mFpm != null) {
            mFpm.addLockoutResetCallback(mLockoutResetCallback);