Cleanup removal of taskbarSize from calculation

* See ag/20617554 for more context

Bug: 261110474
Test: FullscreenDrawParamsTest passes
Change-Id: Id13e811a0966bdcc17fc282303fe98a8b7290dbf
This commit is contained in:
Vinit Nayak
2022-12-01 21:21:15 -08:00
parent 86d092aa7e
commit 70092b090e

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 {