diff options
| author | 2022-12-01 21:21:15 -0800 | |
|---|---|---|
| committer | 2022-12-01 21:25:03 -0800 | |
| commit | 70092b090eaba2b45173f214ab95a3bbeb6f745c (patch) | |
| tree | b21b5551bc50ece93d4fc429a82ea6335d0a55f2 | |
| parent | 86d092aa7ea7ec66b3d7849dd2e6fd5a63a6e0a1 (diff) | |
Cleanup removal of taskbarSize from calculation
* See ag/20617554 for more context
Bug: 261110474
Test: FullscreenDrawParamsTest passes
Change-Id: Id13e811a0966bdcc17fc282303fe98a8b7290dbf
| -rw-r--r-- | packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/PreviewPositionHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/PreviewPositionHelper.java b/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/PreviewPositionHelper.java index c9ea79432360..5883b6c0e723 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/PreviewPositionHelper.java +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/PreviewPositionHelper.java @@ -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 { |