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

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

Merge "Fixed an icon flickering when adding a notification" into oc-dr1-dev

parents 7c726fb4 f38d6c3b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -943,6 +943,10 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
        }
    }

    public boolean isDrawingAppearAnimation() {
        return mDrawingAppearAnimation;
    }

    @Override
    protected void dispatchDraw(Canvas canvas) {
        if (mDrawingAppearAnimation) {
+5 −0
Original line number Diff line number Diff line
@@ -505,6 +505,11 @@ public class NotificationShelf extends ActivatableNotificationView implements
            iconState.scaleX = newSize / icon.getHeight() / icon.getIconScale();
            iconState.scaleY = iconState.scaleX;
            iconState.hidden = transitionAmount == 0.0f && !iconState.isAnimating(icon);
            boolean isAppearing = row.isDrawingAppearAnimation() && !row.isInShelf();
            if (isAppearing) {
                iconState.hidden = true;
                iconState.iconAppearAmount = 0.0f;
            }
            iconState.alpha = alpha;
            iconState.yTranslation = iconYTranslation;
            if (stayingInShelf) {