From 2de606fe731573c081fd2d6ba166e21ea6aa2e9c Mon Sep 17 00:00:00 2001 From: Yogisha Dixit Date: Mon, 12 Oct 2020 15:36:07 +0100 Subject: [PATCH] Delete the minimal database to force refresh. Bug: 169771796 Test: manual Change-Id: Ic2188bb162f295c208346861fddc137ace19ddcb --- .../src/com/android/launcher3/model/WellbeingModel.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quickstep/src/com/android/launcher3/model/WellbeingModel.java b/quickstep/src/com/android/launcher3/model/WellbeingModel.java index a9fc1aa085..995c4b04d4 100644 --- a/quickstep/src/com/android/launcher3/model/WellbeingModel.java +++ b/quickstep/src/com/android/launcher3/model/WellbeingModel.java @@ -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()) {