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

Commit 2e720148 authored by Beverly's avatar Beverly
Browse files

Update device entry intent on keyguard vis change

So that the device doesn't unintentionally bypass
from a stale deviceEntryIntent=true.

Test: manual
 1. Enroll udfps
 2. Auth with fp on LS
 3. Enroll face w/o bypass
 4. Auth with face on LS
 Expected: no bypass
Fixes: 194921838
Change-Id: Ief2eb3c6f6883f467252ebf9785fcc95565b7cc3
parent d9f207c0
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -2842,6 +2842,11 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
            mSecureCameraLaunched = false;
            mSecureCameraLaunched = false;
        }
        }


        if (mKeyguardBypassController != null) {
            // LS visibility has changed, so reset deviceEntryIntent
            mKeyguardBypassController.setUserHasDeviceEntryIntent(false);
        }

        for (int i = 0; i < mCallbacks.size(); i++) {
        for (int i = 0; i < mCallbacks.size(); i++) {
            KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get();
            KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get();
            if (cb != null) {
            if (cb != null) {