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

Commit 2345ce43 authored by Vinit Nayak's avatar Vinit Nayak Committed by Android (Google) Code Review
Browse files

Merge "Incremental update to portrait split gesture animation" into tm-qpr-dev

parents c11ec4ac c702c4f5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -82,7 +82,8 @@ public class PreviewPositionHelper {
                taskPercent = mDesiredStagePosition != STAGE_POSITION_TOP_OR_LEFT
                        ? mSplitBounds.topTaskPercent
                        : (1 - (mSplitBounds.topTaskPercent + mSplitBounds.dividerHeightPercent));
                fullscreenTaskHeight = screenHeightPx * taskPercent;
                // Scale portrait height to that of (actual screen - taskbar inset)
                fullscreenTaskHeight = (screenHeightPx - taskbarSize) * taskPercent;
                canvasScreenRatio = canvasHeight / fullscreenTaskHeight;
            } else {
                // For landscape, scale the width