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

Commit b65c6dbb authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the overflow card appear animation would get stuck

Bug: 24547258
Change-Id: I50a9404c7b9cced0e2e1a2e39ffaaf0d8bf2dfb9
parent f567c984
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -608,8 +608,6 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
                    onFinishedRunnable.run();
                }
                if (!mWasCancelled) {
                    mAppearAnimationFraction = -1;
                    setOutlineRect(null);
                    enableAppearDrawing(false);
                }
            }
@@ -630,6 +628,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
    private void cancelAppearAnimation() {
        if (mAppearAnimator != null) {
            mAppearAnimator.cancel();
            mAppearAnimator = null;
        }
    }

@@ -735,6 +734,8 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
            mDrawingAppearAnimation = enable;
            if (!enable) {
                setContentAlpha(1.0f);
                mAppearAnimationFraction = -1;
                setOutlineRect(null);
            }
            invalidate();
        }