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

Commit c48eff50 authored by Curtis Belmonte's avatar Curtis Belmonte
Browse files

Ensure lock icon animates closed on long press

There's a bug in the current implementation of the lock icon that
prevents it from animating from the unlocked to the locked state
sometimes when it's long-pressed. This is purely an animation bug, as
the device remains locked and requires authentication. However, the
unlocked icon sticks on the screen in this state, leading to a
confusing UX.

Test: manual:
0. Ensure face is enrolled and "Skip lock screen" is off
1. Wake device and unlock with face
2. Long-press lock icon to re-lock device
3. Turn screen off and back on, unlock with face again
4. Long-press lock icon a second time

Before: "Device will stay locked" message shown, but icon stays unlocked
After: "Device will stay locked" message shown, icon animates to locked

Bug: 139831703
Change-Id: Ifc1fe46ccdac5e069004ddc49ffa9d17fd906506
parent 7e77ed63
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1814,8 +1814,10 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
     */
    public void onLockIconPressed() {
        mLockIconPressed = true;
        mUserFaceAuthenticated.put(getCurrentUser(), false);
        final int userId = getCurrentUser();
        mUserFaceAuthenticated.put(userId, false);
        updateFaceListeningState();
        mStrongAuthTracker.onStrongAuthRequiredChanged(userId);
    }

    private void startListeningForFingerprint() {