Cancel animating the divider bar after it being released
Bug: 231974497 Test: Ran tests remotely Change-Id: Ic2d3208e98cfcea9256d8c6f598a995641e7440d
This commit is contained in:
@@ -1115,7 +1115,7 @@ class StageCoordinator implements SplitLayout.SplitLayoutHandler,
|
||||
final SurfaceControl.Transaction transaction = mTransactionPool.acquire();
|
||||
mDividerFadeInAnimator = ValueAnimator.ofFloat(0f, 1f);
|
||||
mDividerFadeInAnimator.addUpdateListener(animation -> {
|
||||
if (dividerLeash == null) {
|
||||
if (dividerLeash == null || !dividerLeash.isValid()) {
|
||||
mDividerFadeInAnimator.cancel();
|
||||
return;
|
||||
}
|
||||
@@ -1125,7 +1125,7 @@ class StageCoordinator implements SplitLayout.SplitLayoutHandler,
|
||||
mDividerFadeInAnimator.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationStart(Animator animation) {
|
||||
if (dividerLeash == null) {
|
||||
if (dividerLeash == null || !dividerLeash.isValid()) {
|
||||
mDividerFadeInAnimator.cancel();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user