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

Commit bb28c01c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix bug where mw landscape cell size is calculated incorretly." into...

Merge "Fix bug where mw landscape cell size is calculated incorretly." into ub-launcher3-dorval-polish2
parents 472110e7 a11380d3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -267,6 +267,10 @@ public class DeviceProfile {
    }

    DeviceProfile getMultiWindowProfile(Context context, Point mwSize) {
        // We take the minimum sizes of this profile and it's multi-window variant to ensure that
        // the system decor is always excluded.
        mwSize.set(Math.min(availableWidthPx, mwSize.x), Math.min(availableHeightPx, mwSize.y));

        // In multi-window mode, we can have widthPx = availableWidthPx
        // and heightPx = availableHeightPx because Launcher uses the InvariantDeviceProfiles'
        // widthPx and heightPx values where it's needed.