From 22cb37745ca36023a455489a67c13de405a2c8b4 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Fri, 15 Sep 2017 17:38:48 -0700 Subject: Ignore clicks on notifications that don't have intents. Bug: 64479852 Change-Id: I3bfff96a12169d0d191a36a8c7e90d4810e9f176 --- src/com/android/launcher3/notification/NotificationInfo.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/launcher3/notification/NotificationInfo.java b/src/com/android/launcher3/notification/NotificationInfo.java index 1b7c87b22..6e36f4f51 100644 --- a/src/com/android/launcher3/notification/NotificationInfo.java +++ b/src/com/android/launcher3/notification/NotificationInfo.java @@ -94,6 +94,9 @@ public class NotificationInfo implements View.OnClickListener { @Override public void onClick(View view) { + if (intent == null) { + return; + } final Launcher launcher = Launcher.getLauncher(view.getContext()); Bundle activityOptions = ActivityOptions.makeClipRevealAnimation( view, 0, 0, view.getWidth(), view.getHeight()).toBundle(); -- cgit v1.2.3