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

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

Made the notificationViewStates static

We shouldn't hold an implicit reference to the
row, let's fix that.

Bug: 35345204
Test: runtest systemui
Change-Id: Ifa0ba0bd07850ae575059b6368791d60d1091616
parent 875ba9bd
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1990,7 +1990,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
        mAboveShelf = aboveShelf;
    }

    public class NotificationViewState extends ExpandableViewState {
    public static class NotificationViewState extends ExpandableViewState {

        private final StackScrollState mOverallState;

@@ -2011,8 +2011,11 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
        @Override
        protected void onYTranslationAnimationFinished(View view) {
            super.onYTranslationAnimationFinished(view);
            if (mHeadsupDisappearRunning) {
                setHeadsUpAnimatingAway(false);
            if (view instanceof ExpandableNotificationRow) {
                ExpandableNotificationRow row = (ExpandableNotificationRow) view;
                if (row.isHeadsUpAnimatingAway()) {
                    row.setHeadsUpAnimatingAway(false);
                }
            }
        }