Merge "Don't put a null in a spannablestringbuilder" am: a09121353d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12392874 Change-Id: I454df94af9e821de01815b408b4417c0d5e7e57f
This commit is contained in:
@@ -312,7 +312,7 @@ public class NotificationStation extends SettingsPreferenceFragment {
|
||||
if (n.extras != null) {
|
||||
title = n.extras.getCharSequence(Notification.EXTRA_TITLE);
|
||||
}
|
||||
return title == null? null : String.valueOf(title);
|
||||
return title == null? "" : String.valueOf(title);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -339,7 +339,7 @@ public class NotificationStation extends SettingsPreferenceFragment {
|
||||
text = n.extras.getCharSequence(Notification.EXTRA_TEXT);
|
||||
}
|
||||
}
|
||||
return text == null ? null : String.valueOf(text);
|
||||
return text == null ? "" : String.valueOf(text);
|
||||
}
|
||||
|
||||
private Drawable loadIcon(HistoricalNotificationInfo info, StatusBarNotification sbn) {
|
||||
|
Reference in New Issue
Block a user