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

Commit 2c9963ca authored by András Kurucz's avatar András Kurucz Committed by Android (Google) Code Review
Browse files

Merge "Update some NSSL methods, to make it available for its view binder" into main

parents eea9c65f 3128abe0
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
@@ -5008,6 +5008,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:"
@@ -5746,11 +5757,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);
    }