Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2071671 authored by Federico Baron's avatar Federico Baron Committed by Android (Google) Code Review
Browse files

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

parents 359992b8 5a190c5e
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -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;
            if (LARGE_SCREEN_WIDGET_PICKER.get()
                    && mDeviceProfile.isTablet && !mDeviceProfile.isTwoPanels) {
                handleClose(false);
                show(Launcher.getLauncher(getContext()), false);
            } else {
                reset();
            }
        }
    }