summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Chris Li <lihongyu@google.com> 2022-10-23 20:43:52 +0800
committer Chris Li <lihongyu@google.com> 2022-10-25 09:55:45 +0000
commitfba7092c99bda36768b55f0d795071fc63a62556 (patch)
tree075f03130f02ae6b461f29214b0493bacefc052b /libs
parent3dd646cf2065088f4caef304c66d7831fc00a27d (diff)
Show bg color during ActivityEmbedding change anim for legacy transition
When switching between horizontal split and vertical split, it will leave part of the screen empty. Show background color to cover that. Also fix the leash start position. Bug: 241043533 Bug: 254090083 Test: verify with horizontal demo app Change-Id: I5b76ee619462a6822637668ffe86301814db8cea
Diffstat (limited to 'libs')
-rw-r--r--libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/TaskFragmentAnimationSpec.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/TaskFragmentAnimationSpec.java b/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/TaskFragmentAnimationSpec.java
index ef5ea563de12..a7d47ef81687 100644
--- a/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/TaskFragmentAnimationSpec.java
+++ b/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/TaskFragmentAnimationSpec.java
@@ -161,7 +161,7 @@ class TaskFragmentAnimationSpec {
// The position should be 0-based as we will post translate in
// TaskFragmentAnimationAdapter#onAnimationUpdate
final Animation endTranslate = new TranslateAnimation(startBounds.left - endBounds.left, 0,
- 0, 0);
+ startBounds.top - endBounds.top, 0);
endTranslate.setDuration(CHANGE_ANIMATION_DURATION);
endSet.addAnimation(endTranslate);
// The end leash is resizing, we should update the window crop based on the clip rect.