Merge "Incremental update to portrait split gesture animation" into tm-qpr-dev am: 2345ce432d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20457062 Change-Id: I80e75499ff65d0c50826dd7733ad9a94e915df48 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -82,7 +82,8 @@ public class PreviewPositionHelper {
|
|||||||
taskPercent = mDesiredStagePosition != STAGE_POSITION_TOP_OR_LEFT
|
taskPercent = mDesiredStagePosition != STAGE_POSITION_TOP_OR_LEFT
|
||||||
? mSplitBounds.topTaskPercent
|
? mSplitBounds.topTaskPercent
|
||||||
: (1 - (mSplitBounds.topTaskPercent + mSplitBounds.dividerHeightPercent));
|
: (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;
|
canvasScreenRatio = canvasHeight / fullscreenTaskHeight;
|
||||||
} else {
|
} else {
|
||||||
// For landscape, scale the width
|
// For landscape, scale the width
|
||||||
|
|||||||
Reference in New Issue
Block a user