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

Skip to content
Commit 9a22714f authored by Song Chun Fan's avatar Song Chun Fan Committed by Songchun Fan
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.

Change-Id: I6d64f7256e99e3519158e62768519107a423723e
BUG: 307323531
Test: manual; stop and start work profile and observe no crashes
parent b654506f
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