Fix NPE printing notification actions.

Change-Id: Icb52e7bc632bf7109a75a7695fb253b2183e7360
Fixes: 29017025
This commit is contained in:
Julia Reynolds
2016-06-20 10:23:44 -04:00
parent c3ec1ab889
commit 9bcc04c5db

View File

@@ -404,14 +404,16 @@ public class NotificationStation extends SettingsPreferenceFragment {
.append(bold(getString( .append(bold(getString(
R.string.notification_log_details_title))) R.string.notification_log_details_title)))
.append(delim) .append(delim)
.append(action.title) .append(action.title);
.append("\n ") if (action.actionIntent != null) {
.append(bold(getString( sb.append("\n ")
R.string.notification_log_details_content_intent))) .append(bold(getString(
.append(delim) R.string.notification_log_details_content_intent)))
.append(formatPendingIntent(action.actionIntent)); .append(delim)
.append(formatPendingIntent(action.actionIntent));
}
if (action.getRemoteInputs() != null) { if (action.getRemoteInputs() != null) {
sb.append(' ') sb.append("\n ")
.append(bold(getString( .append(bold(getString(
R.string.notification_log_details_remoteinput))) R.string.notification_log_details_remoteinput)))
.append(delim) .append(delim)