diff --git a/src/com/android/launcher3/notification/NotificationListener.java b/src/com/android/launcher3/notification/NotificationListener.java index baaa66aeab..8121fd55fb 100644 --- a/src/com/android/launcher3/notification/NotificationListener.java +++ b/src/com/android/launcher3/notification/NotificationListener.java @@ -127,8 +127,9 @@ public class NotificationListener extends NotificationListenerService { } sNotificationsChangedListener = listener; - if (sNotificationListenerInstance != null) { - sNotificationListenerInstance.onNotificationFullRefresh(); + NotificationListener notificationListener = getInstanceIfConnected(); + if (notificationListener != null) { + notificationListener.onNotificationFullRefresh(); } }