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

Commit 278dd7c6 authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Don't show lock icon if face/udfps isn't enrolled

Bug: 183910378
Test: manual
Change-Id: I49bf263b76ffae6f6f2a95d048ce748adaa89dce
parent 5afa828d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -199,14 +199,14 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
    }

    private void updateVisibility() {
        if (!mIsKeyguardShowing) {
        if (!mIsKeyguardShowing || (!mUdfpsEnrolled && !mFaceAuthEnrolled)) {
            mView.setVisibility(View.INVISIBLE);
            return;
        }

        // these three states are mutually exclusive:
        mShowButton = mUdfpsEnrolled && !mCanDismissLockScreen && !mRunningFPS && isLockScreen();
        mShowUnlockIcon = mCanDismissLockScreen && isLockScreen();
        mShowUnlockIcon = mFaceAuthEnrolled & mCanDismissLockScreen && isLockScreen();
        mShowLockIcon = !mUdfpsEnrolled && !mCanDismissLockScreen && isLockScreen()
            && mFaceAuthEnrolled;