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

Commit 11457226 authored by Alex Chau's avatar Alex Chau
Browse files

Add DisplayController in PreviewContext's allowed objects

Fix: 231526132
Test: switch grids
Change-Id: Ie43c54c5fbbea51ee3b795be6baa9c2eaf5e15e4
parent a78e070a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -83,6 +83,7 @@ import com.android.launcher3.pm.UserCache;
import com.android.launcher3.uioverrides.PredictedAppIconInflater;
import com.android.launcher3.uioverrides.plugins.PluginManagerWrapper;
import com.android.launcher3.util.ComponentKey;
import com.android.launcher3.util.DisplayController;
import com.android.launcher3.util.IntArray;
import com.android.launcher3.util.IntSet;
import com.android.launcher3.util.MainThreadInitializedObject.SandboxContext;
@@ -129,7 +130,7 @@ public class LauncherPreviewRenderer extends ContextWrapper
            super(base, UserCache.INSTANCE, InstallSessionHelper.INSTANCE,
                    LauncherAppState.INSTANCE, InvariantDeviceProfile.INSTANCE,
                    CustomWidgetManager.INSTANCE, PluginManagerWrapper.INSTANCE,
                    WindowManagerProxy.INSTANCE);
                    WindowManagerProxy.INSTANCE, DisplayController.INSTANCE);
            mIdp = idp;
            mObjectMap.put(InvariantDeviceProfile.INSTANCE, idp);
            mObjectMap.put(LauncherAppState.INSTANCE,