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

Skip to content
Commit dfedc906 authored by Mia Månsson's avatar Mia Månsson Committed by Kamaljeet Maini
Browse files

Update current user after registering receiver

NotificationLockscreenUserManagerImpl.mCurrentUserId is set in the
constructor and when a user switch broadcast is received. If a user
switch occurs before the receiver is registered, mCurrentUserId will
have a stale value.

This results in SystemUI not acting on the CLOSE_SYSTEM_DIALOG intent,
because the intents user id is compared with the stale mCurrentUserId.

Fixed by updating the current user after the receiver has been
registered.

Bug: 191094807
Bug: 180434613
Test: Add sleep to force the race, and verify the bug no longer occurs.

Change-Id: I972d87a56875e42c87b2418da8ea5be40a776621
parent 3996f1d7
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