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

Commit bfef3d52 authored by Steven Ng's avatar Steven Ng
Browse files

Make KeyguardUpdateMonitor#registerCallback in KeyguardStateControllerImpl to...

Make KeyguardUpdateMonitor#registerCallback in KeyguardStateControllerImpl to run on the main thread.

Problem:
The introduction of the per-display component means the KeyguardStateControllerImpl constructor is no longer guaranteed to be called on the main thread, which invalidates a core assumption of the class

Also, gate the eager initialization with the enable display wallpaper presentation flag, which gates the first feature that requires eager initialization.

Test: atest SystemUITests:KeyguardStateControllerTest
Flag: com.android.window.flags.enable_connected_displays_wallpaper_presentations
Fix: 443810777
Change-Id: I0ffb8f7f069302361c3181fa3d6d1f1c581836b5
parent 55253a78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment