diff options
| author | 2024-03-01 06:22:46 +0000 | |
|---|---|---|
| committer | 2024-03-01 06:22:46 +0000 | |
| commit | 2c9963ca8750d969aebfac1c7bfa79c084804361 (patch) | |
| tree | 3da0dc61c122701aad29828f3958aeceb044361a | |
| parent | eea9c65f2538aa36f92a2f6c1c1c290b8023477a (diff) | |
| parent | 3128abe0330fc6c05f5bd96bc6d8acde36866370 (diff) | |
Merge "Update some NSSL methods, to make it available for its view binder" into main
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index 338d300f57f2..9c03405304ef 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -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); } |