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

Commit 43518406 authored by Lyn's avatar Lyn
Browse files

ActivatableNotifView: rm drawingAppearAnimation check

Unneeded when we always set it true via enableAppearDrawing

Bug: 24900773
Test: manual, no HUN regressions
Change-Id: I8a09ebd325d2e0206d9ab9be413bc9296774e965
parent 192076db
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -355,12 +355,8 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
            AnimatorListenerAdapter animationListener) {
        enableAppearDrawing(true);
        mIsHeadsUpAnimation = isHeadsUpAnimation;
        if (mDrawingAppearAnimation) {
        startAppearAnimation(false /* isAppearing */, translationDirection,
                delay, duration, onFinishedRunnable, animationListener);
        } else if (onFinishedRunnable != null) {
            onFinishedRunnable.run();
        }
        return 0;
    }

@@ -369,11 +365,9 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
            Runnable onFinishRunnable) {
        enableAppearDrawing(true);
        mIsHeadsUpAnimation = isHeadsUpAppear;
        if (mDrawingAppearAnimation) {
        startAppearAnimation(true /* isAppearing */, isHeadsUpAppear ? 0.0f : -1.0f, delay,
                duration, null, null);
    }
    }

    private void startAppearAnimation(boolean isAppearing, float translationDirection, long delay,
            long duration, final Runnable onFinishedRunnable,