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

Commit 705004be authored by Jim Miller's avatar Jim Miller
Browse files

Send USER_PRESENT broadcast after keyguard animation finishes

This fixes a potential race between receiving USER_PRESENT
broadcast and testing if keyguard is finished
(KeyguardManager.isKeyguardLocked())

This also fixes an issue where USER_PRESENT isn't sent when
device encryption is enabled.

Fixes bug 17322844
Fixes bug 17301385

Change-Id: Icab3068c24032942ffdf6554d6d53cc656ae6666
parent f4df7656
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1142,7 +1142,6 @@ public class KeyguardViewMediator extends SystemUI {
        }

        handleHide();
        sendUserPresentBroadcast();
    }

    private void sendUserPresentBroadcast() {
@@ -1313,6 +1312,7 @@ public class KeyguardViewMediator extends SystemUI {
            mHideAnimationRun = false;
            updateActivityLockScreenState();
            adjustStatusBarLocked();
            sendUserPresentBroadcast();
        }
    }