Merge "Cleanup removal of taskbarSize from calculation" into tm-qpr-dev am: 5e43214256 am: a24922394b

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

Change-Id: I39ee28d631bd94d2fcec3fa6905eb9940c02690a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-12-09 00:59:18 +00:00
committed by Automerger Merge Worker

View File

@@ -87,8 +87,8 @@ public class PreviewPositionHelper {
taskPercent = mDesiredStagePosition != STAGE_POSITION_TOP_OR_LEFT
? mSplitBounds.topTaskPercent
: (1 - (mSplitBounds.topTaskPercent + mSplitBounds.dividerHeightPercent));
// Scale portrait height to that of (actual screen - taskbar inset)
fullscreenTaskHeight = (screenHeightPx) * taskPercent;
// Scale portrait height to that of the actual screen
fullscreenTaskHeight = screenHeightPx * taskPercent;
if (mTaskbarInApp) {
canvasScreenRatio = canvasHeight / fullscreenTaskHeight;
} else {