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

Commit 3128abe0 authored by András Kurucz's avatar András Kurucz
Browse files

Update some NSSL methods, to make it available for its view binder

Bug: 325936094
Test: None
Flag: None
Change-Id: I1162d2cbe35db91c25d549d0d9c31e7a2d4a7ce3
parent f1ae44f0
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
@@ -4992,6 +4992,17 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable

    public void generateHeadsUpAnimation(NotificationEntry entry, boolean isHeadsUp) {
        ExpandableNotificationRow row = entry.getHeadsUpAnimationView();
        generateHeadsUpAnimation(row, isHeadsUp);
    }

    /**
     * Notifies the NSSL, that the given view would need a HeadsUp animation, when it is being
     * added to this container.
     *
     * @param row to animate
     * @param isHeadsUp true for appear, false for disappear animations
     */
    public void generateHeadsUpAnimation(ExpandableNotificationRow row, boolean isHeadsUp) {
        final boolean add = mAnimationsEnabled && (isHeadsUp || mHeadsUpGoingAwayAnimationsAllowed);
        if (SPEW) {
            Log.v(TAG, "generateHeadsUpAnimation:"
@@ -5725,11 +5736,17 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
        mShelf.updateAppearance();
    }

    void setTopHeadsUpRow(ExpandableNotificationRow topHeadsUpRow) {
    /**
     * @param topHeadsUpRow the first headsUp row in z-order.
     */
    public void setTopHeadsUpRow(ExpandableNotificationRow topHeadsUpRow) {
        mTopHeadsUpRow = topHeadsUpRow;
    }

    void setNumHeadsUp(long numHeadsUp) {
    /**
     * @param numHeadsUp the number of active alerting notifications.
     */
    public void setNumHeadsUp(long numHeadsUp) {
        mNumHeadsUp = numHeadsUp;
        mAmbientState.setHasHeadsUpEntries(numHeadsUp > 0);
    }