Merge "Clear ZBoost when removing animation leash" into tm-dev
This commit is contained in:
@@ -3181,6 +3181,7 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
|
||||
mLastLayer = -1;
|
||||
mWmService.mSurfaceAnimationRunner.onAnimationLeashLost(mAnimationLeash, t);
|
||||
mAnimationLeash = null;
|
||||
mNeedsZBoost = false;
|
||||
reassignLayer(t);
|
||||
updateSurfacePosition(t);
|
||||
}
|
||||
|
||||
@@ -88,6 +88,11 @@ public class AppWindowTokenAnimationTests extends WindowTestsBase {
|
||||
|
||||
verify(mTransaction).setLayer(eq(mActivity.mAnimationBoundsLayer),
|
||||
intThat(layer -> layer > topActivity.getLastLayer()));
|
||||
|
||||
// The layer should be restored after the animation leash is removed.
|
||||
mActivity.onAnimationLeashLost(mTransaction);
|
||||
assertThat(mActivity.mNeedsZBoost).isFalse();
|
||||
assertThat(topActivity.getLastLayer()).isGreaterThan(mActivity.getLastLayer());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user