Merge "Do not use prefixOrderIndex for animation layer" into sc-v2-dev

This commit is contained in:
Chris Li
2021-12-04 04:58:46 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 1 deletions

View File

@@ -129,7 +129,11 @@ public class RemoteAnimationTarget implements Parcelable {
* The index of the element in the tree in prefix order. This should be used for z-layering * The index of the element in the tree in prefix order. This should be used for z-layering
* to preserve original z-layer order in the hierarchy tree assuming no "boosting" needs to * to preserve original z-layer order in the hierarchy tree assuming no "boosting" needs to
* happen. * happen.
* @deprecated WindowManager may set a z-order different from the prefix order, and has set the
* correct layer for the animation leash already, so this should not be used for
* layer any more.
*/ */
@Deprecated
@UnsupportedAppUsage @UnsupportedAppUsage
public final int prefixOrderIndex; public final int prefixOrderIndex;

View File

@@ -436,7 +436,6 @@ class ActivityLaunchAnimator(private val launchAnimator: LaunchAnimator) {
.withAlpha(1f) .withAlpha(1f)
.withMatrix(matrix) .withMatrix(matrix)
.withWindowCrop(windowCrop) .withWindowCrop(windowCrop)
.withLayer(window.prefixOrderIndex)
.withCornerRadius(cornerRadius) .withCornerRadius(cornerRadius)
.withVisibility(true) .withVisibility(true)
.build() .build()