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

Skip to content
Commit 63da2824 authored by Martin Wallgren's avatar Martin Wallgren Committed by Steve Kondik
Browse files

Don't enable screen until keyguard is ready

The home screen was shown before the keyguard was ready. Allowing the
user to navigate home without unlocking the phone.

WindowManagerService calls checkWaitingForWindowsLocked to determine
when it is safe to enable the screen. But checkWaitingForWindowsLocked
only check if the Keyguard is ready if there is a Window of type
TYPE_STATUS_BAR.

If there is no statusbar window, the WindowManagerService assumed that
the keyguard was ready.

This change will assume that the keyguard is NOT ready until there is a
statusbar window and mPolicy.isKeyguardDrawnLw() return true.

Downside to this patch is that it will not prevent home screen from
being shown before keyguard if we have displayed any boot messages
during boot. At the moment we only show boot messages during first boot
and after upgrades.

Change-Id: Ia3da149568f966c9d753f658d939946dfa2f3b46
parent afb4b1b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment