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

Commit dd152706 authored by Federico Baron's avatar Federico Baron Committed by Automerger Merge Worker
Browse files

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

parents 0edef0f8 c2071671
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();
            }
        }
    }