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

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

Merge "Fix shelf tracking distance for landscape app over portrait launcher"...

Merge "Fix shelf tracking distance for landscape app over portrait launcher" into ub-launcher3-rvc-qpr-dev
parents 032db328 452db0db
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -49,7 +49,9 @@ public class LayoutUtils {
            Rect taskSize = new Rect();
            LauncherActivityInterface.INSTANCE.calculateTaskSize(context, dp, taskSize,
                    orientationHandler);
            return (dp.heightPx - taskSize.height()) / 2;
            return (orientationHandler.getSecondaryValue(dp.widthPx, dp.heightPx)
                    - orientationHandler.getSecondaryValue(taskSize.width(), taskSize.height()))
                    / 2;
        }
        int shelfHeight = dp.hotseatBarSizePx + dp.getInsets().bottom;
        int spaceBetweenShelfAndRecents = (int) context.getResources().getDimension(