Merge "Fix launcher preview for two panel follow up" into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2021-07-27 01:01:50 +00:00
committed by Android (Google) Code Review

View File

@@ -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