Merge "Update the 'is valid contentIntent' check" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ee56c24ad8
@@ -98,9 +98,7 @@ public class NotificationSbnViewHolder extends RecyclerView.ViewHolder {
|
||||
boolean isSnoozed, UiEventLogger uiEventLogger) {
|
||||
Intent appIntent = itemView.getContext().getPackageManager()
|
||||
.getLaunchIntentForPackage(pkg);
|
||||
boolean isPendingIntentValid = pi != null && PendingIntent.getActivity(
|
||||
itemView.getContext(), 0, pi.getIntent(),
|
||||
PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_NO_CREATE) != null;
|
||||
boolean isPendingIntentValid = pi != null && pi.isActivity();
|
||||
if (isPendingIntentValid || appIntent != null) {
|
||||
itemView.setOnClickListener(v -> {
|
||||
uiEventLogger.logWithInstanceIdAndPosition(
|
||||
|
Reference in New Issue
Block a user