diff options
| author | 2025-02-04 05:00:21 -0800 | |
|---|---|---|
| committer | 2025-02-04 05:00:21 -0800 | |
| commit | 21d235892329cd43f3de37e8a43d76e17e13d235 (patch) | |
| tree | e474fdf02b1fc00e102a66d49281db41ebbad0cb | |
| parent | 7d5730bdda0127094093e9eb22d94cbe10980827 (diff) | |
| parent | 8803136f920a61b482fd22c336c96249f9b6f71a (diff) | |
Merge "[Notif redesign] Fix broken expand animation in minimized groups" into main
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java index ea397b61fe84..b548b5835e1e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java @@ -970,7 +970,9 @@ public class NotificationChildrenContainer extends ViewGroup if (mHeaderViewState != null) { mHeaderViewState.applyToView(mGroupHeader); } - if (notificationsRedesignTemplates()) { + // Only apply the special viewState for the header's children if we're not currently showing + // the minimized header. + if (notificationsRedesignTemplates() && !showingAsLowPriority()) { if (mTopLineViewState != null) { mTopLineViewState.applyToView(mGroupHeader.getTopLineView()); } @@ -1236,14 +1238,12 @@ public class NotificationChildrenContainer extends ViewGroup } } - private ViewGroup calculateDesiredHeader() { - ViewGroup desiredHeader; + private NotificationHeaderView calculateDesiredHeader() { if (showingAsLowPriority()) { - desiredHeader = mMinimizedGroupHeader; + return mMinimizedGroupHeader; } else { - desiredHeader = mGroupHeader; + return mGroupHeader; } - return desiredHeader; } private void startChildAlphaAnimations(boolean toVisible) { |