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

Commit 9b74306f authored by Jon Miranda's avatar Jon Miranda
Browse files

Fix bug where Folder gets stuck with an invalid OutlineProvider when cancelled.

Bug: 70300667
Change-Id: I05d82c402584175d5fff336a8b7d9811dcf15633
parent e15e2a82
Loading
Loading
Loading
Loading
+4 −12
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ public abstract class RevealOutlineAnimation extends ViewOutlineProvider {
        final float elevation = revealView.getElevation();

        va.addListener(new AnimatorListenerAdapter() {
            private boolean mWasCanceled = false;
            private boolean mIsClippedToOutline;
            private ViewOutlineProvider mOldOutlineProvider;

@@ -49,20 +48,13 @@ public abstract class RevealOutlineAnimation extends ViewOutlineProvider {
                }
            }

            @Override
            public void onAnimationCancel(Animator animation) {
                mWasCanceled = true;
            }

            public void onAnimationEnd(Animator animation) {
                if (!mWasCanceled) {
                revealView.setOutlineProvider(mOldOutlineProvider);
                revealView.setClipToOutline(mIsClippedToOutline);
                if (shouldRemoveElevationDuringAnimation()) {
                    revealView.setTranslationZ(0);
                }
            }
            }

        });