summaryrefslogtreecommitdiff
path: root/quickstep/src
diff options
context:
space:
mode:
Diffstat (limited to 'quickstep/src')
-rw-r--r--quickstep/src/com/android/quickstep/util/SplitAnimationController.kt41
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()
- }
}
)