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

Commit 1d4619ed authored by Vinit Nayak's avatar Vinit Nayak Committed by Automerger Merge Worker
Browse files

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

Merge "Incremental update to portrait split gesture animation" into tm-qpr-dev am: 2345ce43 am: 1ca5302c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20457062



Change-Id: I20e55cfc8d59d7e7f0e2c7f8e6f4bd12bbb96d77
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 3fe124cd 1ca5302c
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