From cd6885455b623d27b9efa0b2788d74fa29bc5776 Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 15 Jun 2017 18:04:04 -0700 Subject: [PATCH] Don't crash when tapping twice on a notification Bug: 62588191 Change-Id: I33671ab08411c4e4e624b579561229d32b7a29c9 --- src/com/android/launcher3/notification/NotificationInfo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/notification/NotificationInfo.java b/src/com/android/launcher3/notification/NotificationInfo.java index 1a93e11552..1b7c87b229 100644 --- a/src/com/android/launcher3/notification/NotificationInfo.java +++ b/src/com/android/launcher3/notification/NotificationInfo.java @@ -27,6 +27,7 @@ import android.os.Bundle; import android.service.notification.StatusBarNotification; import android.view.View; +import com.android.launcher3.AbstractFloatingView; import com.android.launcher3.Launcher; import com.android.launcher3.LauncherAppState; import com.android.launcher3.graphics.IconPalette; @@ -105,7 +106,8 @@ public class NotificationInfo implements View.OnClickListener { if (autoCancel) { launcher.getPopupDataProvider().cancelNotification(notificationKey); } - PopupContainerWithArrow.getOpen(launcher).close(true); + AbstractFloatingView.closeOpenContainer(launcher, AbstractFloatingView + .TYPE_POPUP_CONTAINER_WITH_ARROW); } public Drawable getIconForBackground(Context context, int background) {