Delete the minimal database to force refresh.

Bug: 169771796
Test: manual
Change-Id: Ic2188bb162f295c208346861fddc137ace19ddcb
This commit is contained in:
Yogisha Dixit
2020-10-12 15:36:07 +01:00
parent 2727434c44
commit 2de606fe73

View File

@@ -148,6 +148,12 @@ public final class WellbeingModel extends BgObjectWithLooper {
if (!FeatureFlags.ENABLE_MINIMAL_DEVICE.get()) {
return;
}
// Temporary bug fix for b/169771796. Wellbeing provides the layout configuration when
// minimal device is enabled. We always want to reload the configuration from Wellbeing
// since the layout configuration might have changed.
mContext.deleteDatabase(DB_NAME_MINIMAL_DEVICE);
final Bundle extras = new Bundle();
String dbFile;
if (isInMinimalDeviceMode()) {