diff options
| author | 2024-04-19 19:13:00 +0000 | |
|---|---|---|
| committer | 2024-04-19 19:13:00 +0000 | |
| commit | 71ee7d85a3f6e5fb282cdfb444a4caeddd5d65e2 (patch) | |
| tree | 14c832a2f612b4e15b9dbb02790f294fc526e167 | |
| parent | cecfc9f5e71a42f842c6acf33554c3102c15d7af (diff) | |
| parent | 5a32e38683e75b9fb10109b7f2f120311efff1fe (diff) | |
Merge "Remove unused NSSL#mAnimateBottomLayout" into main
2 files changed, 0 insertions, 21 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 8a1a4f1e4cd8..fd675866fa82 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 @@ -482,7 +482,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; @@ -2941,23 +2940,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(); } @@ -5465,10 +5452,6 @@ public class NotificationStackScrollLayout } } - void setAnimateBottomOnLayout(boolean animateBottomOnLayout) { - mAnimateBottomOnLayout = animateBottomOnLayout; - } - public void setOnPulseHeightChangedListener(Runnable listener) { mAmbientState.setOnPulseHeightChangedListener(listener); } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java index 5e719b1f0667..d8a16ce5a6e9 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java @@ -306,10 +306,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); |