Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1882b18a authored by Jerry Chang's avatar Jerry Chang
Browse files

Cancel animating the divider bar after it being released

Bug: 231974497
Test: Ran tests remotely
Change-Id: Ic2d3208e98cfcea9256d8c6f598a995641e7440d
parent c122c97c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
                    }