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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24606284

Change-Id: I365153e76e8e84897fe8f74983efcb4248a9cce5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Federico Baron
2023-08-31 18:58:34 +00:00
committed by Automerger Merge Worker

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();
}
}
}