Merge "Fix bug where suggested widget overlaps widget list" into udc-qpr-dev

This commit is contained in:
Federico Baron
2023-08-31 18:52:44 +00:00
committed by Android (Google) Code Review

View File

@@ -794,13 +794,15 @@ public class WidgetsFullSheet extends BaseWidgetSheet
}
// Checks the orientation of the screen
if (LARGE_SCREEN_WIDGET_PICKER.get()
&& mOrientation != newConfig.orientation
&& mDeviceProfile.isTablet
&& !mDeviceProfile.isTwoPanels) {
if (mOrientation != newConfig.orientation) {
mOrientation = newConfig.orientation;
handleClose(false);
show(Launcher.getLauncher(getContext()), false);
if (LARGE_SCREEN_WIDGET_PICKER.get()
&& mDeviceProfile.isTablet && !mDeviceProfile.isTwoPanels) {
handleClose(false);
show(Launcher.getLauncher(getContext()), false);
} else {
reset();
}
}
}