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

Commit 6758b4c8 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Add logs to sidefps visibility status

Bug: 253979025
Test: Seen logs locally
Change-Id: I7c70aa1fad5c5614cd3a8b8d04f33fc84628086b
parent c1fee021
Loading
Loading
Loading
Loading
+15 −4
Original line number Original line Diff line number Diff line
@@ -349,10 +349,21 @@ public class KeyguardSecurityContainerController extends ViewController<Keyguard
        if (!mSidefpsController.isPresent()) {
        if (!mSidefpsController.isPresent()) {
            return;
            return;
        }
        }
        if (mBouncerVisible
        final boolean sfpsEnabled = getResources().getBoolean(
                && getResources().getBoolean(R.bool.config_show_sidefps_hint_on_bouncer)
                R.bool.config_show_sidefps_hint_on_bouncer);
                && mUpdateMonitor.isFingerprintDetectionRunning()
        final boolean fpsDetectionRunning = mUpdateMonitor.isFingerprintDetectionRunning();
                && !mUpdateMonitor.userNeedsStrongAuth()) {
        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();
            mSidefpsController.get().show();
        } else {
        } else {
            mSidefpsController.get().hide();
            mSidefpsController.get().hide();