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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16611809

Change-Id: If26f91fd0f0e4d566ac056eb9b04513f4452bf67
This commit is contained in:
Jeff DeCew
2022-01-12 15:11:03 +00:00
committed by Automerger Merge Worker

View File

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