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

Commit 5a32e386 authored by András Kurucz's avatar András Kurucz
Browse files

Remove unused NSSL#mAnimateBottomLayout

Bug: 325936094
Test: atest NotificationStackScrollLayoutTest
Flag: N/A
Change-Id: Ide60514eaf72f27ebb3570876af468de2ccf2764
parent ed46d368
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -479,7 +479,6 @@ public class NotificationStackScrollLayout
    private Interpolator mHideXInterpolator = Interpolators.FAST_OUT_SLOW_IN;

    private final NotificationSectionsManager mSectionsManager;
    private boolean mAnimateBottomOnLayout;
    private float mLastSentAppear;
    private float mLastSentExpandedHeight;
    private boolean mWillExpand;
@@ -2938,23 +2937,11 @@ public class NotificationStackScrollLayout
    }

    private void updateFirstAndLastBackgroundViews() {
        NotificationSection firstSection = getFirstVisibleSection();
        NotificationSection lastSection = getLastVisibleSection();
        ExpandableView previousFirstChild =
                firstSection == null ? null : firstSection.getFirstVisibleChild();
        ExpandableView previousLastChild =
                lastSection == null ? null : lastSection.getLastVisibleChild();

        ExpandableView firstChild = getFirstChildWithBackground();
        ExpandableView lastChild = getLastChildWithBackground();
        boolean sectionViewsChanged = mSectionsManager.updateFirstAndLastViewsForAllSections(
                mSections, getChildrenWithBackground());

        if (mAnimationsEnabled && mIsExpanded) {
        } else {
        }
        mAmbientState.setLastVisibleBackgroundChild(lastChild);
        mAnimateBottomOnLayout = false;
        invalidate();
    }

@@ -5431,10 +5418,6 @@ public class NotificationStackScrollLayout
        }
    }

    void setAnimateBottomOnLayout(boolean animateBottomOnLayout) {
        mAnimateBottomOnLayout = animateBottomOnLayout;
    }

    public void setOnPulseHeightChangedListener(Runnable listener) {
        mAmbientState.setOnPulseHeightChangedListener(listener);
    }
+0 −4
Original line number Diff line number Diff line
@@ -310,10 +310,6 @@ public class NotificationStackScrollLayoutController implements Dumpable {
    };

    private final DynamicPrivacyController.Listener mDynamicPrivacyControllerListener = () -> {
        if (mView.isExpanded()) {
            // The bottom might change because we're using the final actual height of the view
            mView.setAnimateBottomOnLayout(true);
        }
        if (!FooterViewRefactor.isEnabled()) {
            // Let's update the footer once the notifications have been updated (in the next frame)
            mView.post(this::updateFooter);