Merge "Don't show two pane widget picker in foldables." into udc-dev

This commit is contained in:
TreeHugger Robot
2023-04-05 00:29:16 +00:00
committed by Android (Google) Code Review
@@ -683,7 +683,8 @@ public class WidgetsFullSheet extends BaseWidgetSheet
public static WidgetsFullSheet show(Launcher launcher, boolean animate) {
boolean isTwoPane = LARGE_SCREEN_WIDGET_PICKER.get()
&& launcher.getDeviceProfile().isTablet
&& launcher.getDeviceProfile().isLandscape;
&& launcher.getDeviceProfile().isLandscape
&& !launcher.getDeviceProfile().isTwoPanels;
WidgetsFullSheet sheet;
if (isTwoPane) {