diff options
author | 2025-03-20 11:28:24 -0400 | |
---|---|---|
committer | 2025-03-20 09:01:14 -0700 | |
commit | f93544c58cc2270ab61ec734e00fd91e25454b2c (patch) | |
tree | fab28e15dcdc0c971b3b5507a097fe4eee09ed95 /quickstep/src | |
parent | 8b408e4767b3c2132b1339cbdc297bc20d68ea2f (diff) |
Revert "Reset leashes before starting taskbar app pair launch animation"
This reverts commit ba25fd9523d1a303c54eef43f12f7b6e284f81aa.
Bug: 399037701
Flag: EXEMPT bugfix
Change-Id: Ifda203670c3273ce28fc6522f08cca830da95957
Diffstat (limited to 'quickstep/src')
-rw-r--r-- | quickstep/src/com/android/quickstep/util/SplitAnimationController.kt | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/quickstep/src/com/android/quickstep/util/SplitAnimationController.kt b/quickstep/src/com/android/quickstep/util/SplitAnimationController.kt index d6e553d1b0..57f04e2b26 100644 --- a/quickstep/src/com/android/quickstep/util/SplitAnimationController.kt +++ b/quickstep/src/com/android/quickstep/util/SplitAnimationController.kt @@ -995,11 +995,6 @@ class SplitAnimationController(val splitSelectStateController: SplitSelectStateC val splitTree: Pair<Change, List<Change>>? = extractTopParentAndChildren(transitionInfo) check(splitTree != null) { "Could not find a split root candidate" } val rootCandidate = splitTree.first - val stageRootTaskIds: Set<Int> = splitTree.second.map { it.taskInfo!!.taskId }.toSet() - val leafTasks: List<Change> = - transitionInfo.changes - .filter { it.taskInfo != null && it.taskInfo!!.parentTaskId in stageRootTaskIds } - .toList() // Starting position is a 34% size tile centered in the middle of the screen. // Ending position is the full device screen. @@ -1033,42 +1028,6 @@ class SplitAnimationController(val splitSelectStateController: SplitSelectStateC override fun onAnimationEnd(animation: Animator) { finishCallback.run() } - - override fun onAnimationStart(animation: Animator) { - // Reset leaf and stage root tasks, animation can begin from freeform windows - for (leaf in leafTasks) { - val endAbsBounds = leaf.endAbsBounds - - t.setAlpha(leaf.leash, 1f) - t.setCrop( - leaf.leash, - 0f, - 0f, - endAbsBounds.width().toFloat(), - endAbsBounds.height().toFloat(), - ) - t.setPosition(leaf.leash, 0f, 0f) - } - - for (stageRoot in splitTree.second) { - val endAbsBounds = stageRoot.endAbsBounds - - t.setAlpha(stageRoot.leash, 1f) - t.setCrop( - stageRoot.leash, - 0f, - 0f, - endAbsBounds.width().toFloat(), - endAbsBounds.height().toFloat(), - ) - t.setPosition( - stageRoot.leash, - endAbsBounds.left.toFloat(), - endAbsBounds.top.toFloat(), - ) - } - t.apply() - } } ) |