Merge "Fix crash with intent-less actions" into nyc-dev am: ac2b44f502 am: a8231efd8f
am: 9af97c2879
* commit '9af97c28797b7d46613c4f569669139511934dcf':
Fix crash with intent-less actions
Change-Id: I3c4d852918e598fa9a44499ae0b879e967ac04f3
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