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

Commit 0edaab8d authored by Nicolò Mazzucato's avatar Nicolò Mazzucato Committed by Android (Google) Code Review
Browse files

Merge "Add logs to sidefps visibility status" into tm-qpr-dev

parents 44ef8927 6758b4c8
Loading
Loading
Loading
Loading
+15 −4
Original line number Diff line number Diff line
@@ -353,10 +353,21 @@ public class KeyguardSecurityContainerController extends ViewController<Keyguard
        if (!mSidefpsController.isPresent()) {
            return;
        }
        if (mBouncerVisible
                && getResources().getBoolean(R.bool.config_show_sidefps_hint_on_bouncer)
                && mUpdateMonitor.isFingerprintDetectionRunning()
                && !mUpdateMonitor.userNeedsStrongAuth()) {
        final boolean sfpsEnabled = getResources().getBoolean(
                R.bool.config_show_sidefps_hint_on_bouncer);
        final boolean fpsDetectionRunning = mUpdateMonitor.isFingerprintDetectionRunning();
        final boolean needsStrongAuth = mUpdateMonitor.userNeedsStrongAuth();

        boolean toShow = mBouncerVisible && sfpsEnabled && fpsDetectionRunning && !needsStrongAuth;

        if (DEBUG) {
            Log.d(TAG, "sideFpsToShow=" + toShow + ", "
                    + "mBouncerVisible=" + mBouncerVisible + ", "
                    + "configEnabled=" + sfpsEnabled + ", "
                    + "fpsDetectionRunning=" + fpsDetectionRunning + ", "
                    + "needsStrongAuth=" + needsStrongAuth);
        }
        if (toShow) {
            mSidefpsController.get().show();
        } else {
            mSidefpsController.get().hide();