summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Johannes Gallmann <gallmann@google.com> 2023-11-09 15:13:27 +0000
committer Johannes Gallmann <gallmann@google.com> 2023-11-09 15:13:27 +0000
commitff36921920c23ee96f5a0578a142f291997b199e (patch)
tree4be5e27ff3f6579453900693e856e2beb223834a
parenta891bc207743712bc33ee1c0e5c73667e2328981 (diff)
Fix fling back behaviour for CrossTaskBackAnimation
It needs to be ensured that the surfaces are arranged correctly at least once before starting the post commit part of the back animation. Otherwise the post commit part of the animation will pick up a wrong starting point of the involved surfaces. Bug: 309117413 Test: Manual, i.e. verifying that fling back behaves correctly on device Change-Id: Idd349854ae44e5b0b8617e96651070f78cea33b3
-rw-r--r--core/java/android/window/BackProgressAnimator.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/window/BackProgressAnimator.java b/core/java/android/window/BackProgressAnimator.java
index e58c044730ae..e7280d0e7867 100644
--- a/core/java/android/window/BackProgressAnimator.java
+++ b/core/java/android/window/BackProgressAnimator.java
@@ -109,6 +109,7 @@ public class BackProgressAnimator {
mLastBackEvent = event;
mCallback = callback;
mBackAnimationInProgress = true;
+ updateProgressValue(0);
}
/**