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

Skip to content
Commit 454b6c59 authored by sz656r's avatar sz656r Committed by LI SHI
Browse files

Cleanup user data when user stopped

1. During the quick user switch, the user status is changed from
   STATE_STOPPING to STATE_BOOTING, the process android.process.core
   (ContactsProvider2) was not closed, but the AccountManagerService
   cleanup the user in stopping stage.

2. When the user is switched back, the old ContactsProvider2
   process was used, but the client doesn't have the listener
   registered for AccountManager any more.

3. This causes the ContactsProvider reloaded again when the phone
   is connected, then duplicated contacts will show on the screen.

4. Solution is cleaning up the user data in onUserStopped.

Test: manual verification

Bug: 224818967

Change-Id: I8fb44e0e66ff73c055a548d57ff3d45ecc213f71
parent c3a27297
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