summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/notification
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2017-09-15 17:38:48 -0700
committerTony Wickham <twickham@google.com>2017-09-15 17:38:48 -0700
commit22cb37745ca36023a455489a67c13de405a2c8b4 (patch)
treefcfe6d4baf03df09427111ff210b20129b7ff791 /src/com/android/launcher3/notification
parent94b02ad8882f971e89cca12f8abfb1931b2e77dc (diff)
downloadandroid_packages_apps_Trebuchet-22cb37745ca36023a455489a67c13de405a2c8b4.tar.gz
android_packages_apps_Trebuchet-22cb37745ca36023a455489a67c13de405a2c8b4.tar.bz2
android_packages_apps_Trebuchet-22cb37745ca36023a455489a67c13de405a2c8b4.zip
Ignore clicks on notifications that don't have intents.
Bug: 64479852 Change-Id: I3bfff96a12169d0d191a36a8c7e90d4810e9f176
Diffstat (limited to 'src/com/android/launcher3/notification')
-rw-r--r--src/com/android/launcher3/notification/NotificationInfo.java3
1 files changed, 3 insertions, 0 deletions
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();