Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +6 −4 Original line number Original line Diff line number Diff line Loading @@ -2768,6 +2768,10 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd private void updateFirstAndLastBackgroundViews() { private void updateFirstAndLastBackgroundViews() { NotificationSection firstSection = getFirstVisibleSection(); NotificationSection firstSection = getFirstVisibleSection(); NotificationSection lastSection = getLastVisibleSection(); NotificationSection lastSection = getLastVisibleSection(); ActivatableNotificationView previousFirstChild = firstSection == null ? null : firstSection.getFirstVisibleChild(); ActivatableNotificationView previousLastChild = lastSection == null ? null : lastSection.getLastVisibleChild(); ActivatableNotificationView firstChild = getFirstChildWithBackground(); ActivatableNotificationView firstChild = getFirstChildWithBackground(); ActivatableNotificationView lastChild = getLastChildWithBackground(); ActivatableNotificationView lastChild = getLastChildWithBackground(); Loading @@ -2775,10 +2779,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd mSections[0], mSections[1], firstChild, lastChild); mSections[0], mSections[1], firstChild, lastChild); if (mAnimationsEnabled && mIsExpanded) { if (mAnimationsEnabled && mIsExpanded) { mAnimateNextBackgroundTop = mAnimateNextBackgroundTop = firstChild != previousFirstChild; firstSection == null || firstChild != firstSection.getFirstVisibleChild(); mAnimateNextBackgroundBottom = lastChild != previousLastChild; mAnimateNextBackgroundBottom = lastSection == null || lastChild != lastSection.getLastVisibleChild(); mAnimateNextSectionBoundsChange = sectionViewsChanged; mAnimateNextSectionBoundsChange = sectionViewsChanged; } else { } else { mAnimateNextBackgroundTop = false; mAnimateNextBackgroundTop = false; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +6 −4 Original line number Original line Diff line number Diff line Loading @@ -2768,6 +2768,10 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd private void updateFirstAndLastBackgroundViews() { private void updateFirstAndLastBackgroundViews() { NotificationSection firstSection = getFirstVisibleSection(); NotificationSection firstSection = getFirstVisibleSection(); NotificationSection lastSection = getLastVisibleSection(); NotificationSection lastSection = getLastVisibleSection(); ActivatableNotificationView previousFirstChild = firstSection == null ? null : firstSection.getFirstVisibleChild(); ActivatableNotificationView previousLastChild = lastSection == null ? null : lastSection.getLastVisibleChild(); ActivatableNotificationView firstChild = getFirstChildWithBackground(); ActivatableNotificationView firstChild = getFirstChildWithBackground(); ActivatableNotificationView lastChild = getLastChildWithBackground(); ActivatableNotificationView lastChild = getLastChildWithBackground(); Loading @@ -2775,10 +2779,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd mSections[0], mSections[1], firstChild, lastChild); mSections[0], mSections[1], firstChild, lastChild); if (mAnimationsEnabled && mIsExpanded) { if (mAnimationsEnabled && mIsExpanded) { mAnimateNextBackgroundTop = mAnimateNextBackgroundTop = firstChild != previousFirstChild; firstSection == null || firstChild != firstSection.getFirstVisibleChild(); mAnimateNextBackgroundBottom = lastChild != previousLastChild; mAnimateNextBackgroundBottom = lastSection == null || lastChild != lastSection.getLastVisibleChild(); mAnimateNextSectionBoundsChange = sectionViewsChanged; mAnimateNextSectionBoundsChange = sectionViewsChanged; } else { } else { mAnimateNextBackgroundTop = false; mAnimateNextBackgroundTop = false; Loading