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

Commit 069946b1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

Merge "Fix bug where Folder gets stuck with an invalid OutlineProvider when cancelled." into ub-launcher3-master
parents 9e305607 9b74306f
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);
                }
            }
            }

        });