Merge "Add null check" am: 4acf477987

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12407746

Change-Id: I728dc9b23fcb76ea6b0ec547cca13e21f9765194
This commit is contained in:
TreeHugger Robot
2020-08-21 05:33:38 +00:00
committed by Automerger Merge Worker

View File

@@ -72,6 +72,9 @@ public class AppNotificationPreferenceController extends AppInfoPreferenceContro
private CharSequence getNotificationSummary(ApplicationsState.AppEntry appEntry,
Context context, NotificationBackend backend) {
if (appEntry == null) {
return "";
}
NotificationBackend.AppRow appRow =
backend.loadAppRow(context, context.getPackageManager(), appEntry.info);
return getNotificationSummary(appRow, context);