Merge "Fix crash with intent-less actions" into nyc-dev

am: ac2b44f502

* commit 'ac2b44f5021f6d863c37167b26fe7dfba9bc4c6f':
  Fix crash with intent-less actions

Change-Id: Ifa3e489a206c04b43d9747bd260156e346111d3e
This commit is contained in:
Adrian Roos
2016-05-31 20:59:07 +00:00
committed by android-build-merger

View File

@@ -2582,6 +2582,9 @@ public class NotificationManagerService extends SystemService {
}
if (notification.actions != null) {
for (Notification.Action action: notification.actions) {
if (action.actionIntent == null) {
continue;
}
am.setPendingIntentWhitelistDuration(action.actionIntent.getTarget(), duration);
setPendingIntentWhitelistDuration(am, duration, action.getExtras());
final RemoteInput[] remoteInputs = action.getRemoteInputs();