summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author sz656r <li.shi@gm.com> 2022-04-28 16:07:59 -0700
committer LI SHI <li.shi@gm.com> 2022-04-28 23:22:54 +0000
commit454b6c590fc76f356ed8181bb844f6dd15588c2c (patch)
tree4cf4862d9492361a400de3da62bad6beb361042d /api/api.go
parentc3a27297c4643f55f619a68e1f45d87e606c7590 (diff)
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
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions