mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Merge "Fix bug where suggested widget overlaps widget list" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c207167124
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user