Merge "Fix launcher preview for two panel follow up" into sc-v2-dev am: d616cc2db0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15393095 Change-Id: Ibf08e7f96d3ac1f7494cb6225c51aa903027017d
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user