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

Commit 454ea214 authored by Andras Kloczl's avatar Andras Kloczl
Browse files

Fix launcher preview for two panel follow up

Fixing a possible context issue that was suggested
on the previous CL (ag/15079450) after it got submitted.

Bug: 185508060
Test: manually check launcher preview in wallpaper app
Change-Id: Ia653b833e4c1b911c7d7cac38c35ec2d12ab3a29
parent 646f8046
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ public class PreviewSurfaceRenderer {

                @Override
                public void run() {
                    DeviceProfile deviceProfile = mIdp.getDeviceProfile(mContext);
                    DeviceProfile deviceProfile = mIdp.getDeviceProfile(previewContext);
                    String query = (deviceProfile.isTwoPanels ? LauncherSettings.Favorites.SCREEN
                            + " = " + Workspace.LEFT_PANEL_ID + " or " : "")
                            + LauncherSettings.Favorites.SCREEN + " = " + Workspace.FIRST_SCREEN_ID