Ignore clicks on notifications that don't have intents.

Bug: 64479852
Change-Id: I3bfff96a12169d0d191a36a8c7e90d4810e9f176
This commit is contained in:
Tony Wickham
2017-09-15 17:38:48 -07:00
parent 94b02ad888
commit 22cb37745c

View File

@@ -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();