Fix pending intent links am: 97894bcfb7

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12284872

Change-Id: I6f3333367daae87463890f7ad06de70d27b74ca7
This commit is contained in:
Julia Reynolds
2020-08-13 14:40:03 +00:00
committed by Automerger Merge Worker

View File

@@ -108,7 +108,7 @@ public class NotificationSbnViewHolder extends RecyclerView.ViewHolder {
: NotificationHistoryActivity.NotificationHistoryEvent
.NOTIFICATION_HISTORY_RECENT_ITEM_CLICK,
uid, pkg, instanceId, position);
if (pi != null) {
if (pi != null && isPendingIntentValid) {
try {
pi.send();
} catch (PendingIntent.CanceledException e) {