Merge "Prevent a crash when constructing NSSL." into qt-dev

This commit is contained in:
Jeff DeCew
2022-01-12 14:58:53 +00:00
committed by Android (Google) Code Review

View File

@@ -707,6 +707,9 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
@VisibleForTesting @VisibleForTesting
@ShadeViewRefactor(RefactorComponent.SHADE_VIEW) @ShadeViewRefactor(RefactorComponent.SHADE_VIEW)
public void updateFooter() { public void updateFooter() {
if (mFooterView == null) {
return;
}
boolean showDismissView = mClearAllEnabled && hasActiveClearableNotifications(ROWS_ALL); boolean showDismissView = mClearAllEnabled && hasActiveClearableNotifications(ROWS_ALL);
boolean showFooterView = (showDismissView || boolean showFooterView = (showDismissView ||
mEntryManager.getNotificationData().getActiveNotifications().size() != 0) mEntryManager.getNotificationData().getActiveNotifications().size() != 0)