Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aecbda38 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update the 'is valid contentIntent' check" into tm-dev am: ee56c24a

parents 260e8f8c ee56c24a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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(