commit | 7b33cd902b095a77483aba1850145f4a3af27477 | [log] [tgz] |
---|---|---|
author | Jeremy Sim <jeremysim@google.com> | Tue Oct 01 11:50:54 2024 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Oct 02 23:22:06 2024 +0000 |
tree | 6a382bef8da1c256a6c10cb1801796eee8baccc3 | |
parent | 73532bf515148d3716b3c7786832653f401017c3 [diff] |
Fix small bug with TaskView tile expansion There was a small typo that resulted in the wrong measurement being returned for the remaining TaskView. This CL fixes it. Fixes: 365476600 Test: Manual Flag: NONE bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:21f504e0f14f0d3b983bf6694eeda8fc7bedda34) Merged-In: I1abf993abcaa8d06e5475f31c0322017f6e96e6f Change-Id: I1abf993abcaa8d06e5475f31c0322017f6e96e6f
diff --git a/quickstep/src/com/android/quickstep/util/SplitAnimationController.kt b/quickstep/src/com/android/quickstep/util/SplitAnimationController.kt index 3449cf2..f708f4b 100644 --- a/quickstep/src/com/android/quickstep/util/SplitAnimationController.kt +++ b/quickstep/src/com/android/quickstep/util/SplitAnimationController.kt
@@ -238,7 +238,7 @@ taskViewHeight, ) val snapshotViewSize = - if (isPrimaryTaskSplitting) primarySnapshotViewSize else secondarySnapshotViewSize + if (isPrimaryTaskSplitting) secondarySnapshotViewSize else primarySnapshotViewSize if (deviceProfile.isLeftRightSplit) { // Center view first so scaling happens uniformly, alternatively we can move pivotX to 0 val centerThumbnailTranslationX: Float = (taskViewWidth - snapshotViewSize.x) / 2f