Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +6 −1 Original line number Diff line number Diff line Loading @@ -2068,6 +2068,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable int height = 0; float previousPaddingRequest = mPaddingBetweenElements; int numShownItems = 0; int numShownNotifs = 0; boolean finish = false; int maxDisplayedNotifications = mMaxDisplayedNotifications; ExpandableView previousView = null; Loading @@ -2077,7 +2078,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable if (expandableView.getVisibility() != View.GONE && !expandableView.hasNoContentHeight() && !footerViewOnLockScreen) { boolean limitReached = maxDisplayedNotifications != -1 && numShownItems >= maxDisplayedNotifications; && numShownNotifs >= maxDisplayedNotifications; final float viewHeight; if (limitReached) { viewHeight = mShelf.getIntrinsicHeight(); Loading @@ -2090,7 +2091,11 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable } height += calculateGapHeight(previousView, expandableView, numShownItems); height += viewHeight; numShownItems++; if (!(expandableView instanceof MediaHeaderView)) { numShownNotifs++; } previousView = expandableView; if (finish) { break; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +6 −1 Original line number Diff line number Diff line Loading @@ -2068,6 +2068,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable int height = 0; float previousPaddingRequest = mPaddingBetweenElements; int numShownItems = 0; int numShownNotifs = 0; boolean finish = false; int maxDisplayedNotifications = mMaxDisplayedNotifications; ExpandableView previousView = null; Loading @@ -2077,7 +2078,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable if (expandableView.getVisibility() != View.GONE && !expandableView.hasNoContentHeight() && !footerViewOnLockScreen) { boolean limitReached = maxDisplayedNotifications != -1 && numShownItems >= maxDisplayedNotifications; && numShownNotifs >= maxDisplayedNotifications; final float viewHeight; if (limitReached) { viewHeight = mShelf.getIntrinsicHeight(); Loading @@ -2090,7 +2091,11 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable } height += calculateGapHeight(previousView, expandableView, numShownItems); height += viewHeight; numShownItems++; if (!(expandableView instanceof MediaHeaderView)) { numShownNotifs++; } previousView = expandableView; if (finish) { break; Loading