Merge "Add null check"
This commit is contained in:
committed by
Android (Google) Code Review
commit
4acf477987
@@ -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);
|
||||
|
Reference in New Issue
Block a user