Merge "Fix crash with intent-less actions" into nyc-dev am: ac2b44f502
am: e090dcbc8a
* commit 'e090dcbc8a6f85ebe024230826c43b0111355c18':
Fix crash with intent-less actions
Change-Id: I495f6765ac067e07e2f5ee24242eb3d6b533d67c
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user