Skip to content
Commit 791980f2 authored by Marcello Galhardo's avatar Marcello Galhardo
Browse files

Fix crash when a shortcut update for notes happens before user unlocked

* Ensure NoteTaskController is updated and valid state when the system
 is initialized (after direct boot user is unlocked).
* NoteTaskController now double check if the user is unlocked before
 triggering a shortcut update (onRoleHolderChanged).
 * If by any reason an event is lost, we check again in the next boot.

Test: atest SystemUITests:NoteTaskControllerTest
Test: atest SystemUITests:NoteTaskInitializerTest
Flag: not needed
Fixes: b/275852881
Change-Id: Ib3c9d66abf9074c50cdc79ef93fa8d162e9608cb
parent 1c3a7005
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