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

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2023-04-05 00:29:16 +00:00
commit aa017b3c84
1 file changed
+2 -1
@@ -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) {