Merge "Don't show two pane widget picker in foldables." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
aa017b3c84
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user