Skip to content
Snippets Groups Projects
Commit 57f4861b authored by Song Chun Fan's avatar Song Chun Fan Committed by Android Build Coastguard Worker
Browse files

[SettingsProvider] fix SettingsProvider on work profile restart

A recent CL ag/25164661 changed SettingsProvider from lazily initializing to promptly initializing all the tables on-user-added. The old implementation of SettingsProvider used to promply clear all the settings tables when a user is stopped. This no longer works if we initialize the tables when the user is created, resulting in NullPointerExceptions. In this CL, we no longer clear the settings tables when a user is stopped. Instead, we only clear the tables when the user is removed.

BUG: 307323531
Test: manual; stop and start work profile and observe no crashes
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9a22714fddb4473bb49fedf1a0072b9e5584bdff)
Merged-In: I6d64f7256e99e3519158e62768519107a423723e
Change-Id: I6d64f7256e99e3519158e62768519107a423723e
parent dc6311e6
No related branches found
No related tags found
No related merge requests found
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