Merge "Ensure notification listener is connected before getting notifications" into ub-launcher3-dorval-polish

This commit is contained in:
Tony Wickham authored and Android (Google) Code Review committed 2017-06-28 23:49:22 +00:00
commit 3bf231d9af
1 file changed
+3 -2
@@ -127,8 +127,9 @@ public class NotificationListener extends NotificationListenerService {
}
sNotificationsChangedListener = listener;
if (sNotificationListenerInstance != null) {
sNotificationListenerInstance.onNotificationFullRefresh();
NotificationListener notificationListener = getInstanceIfConnected();
if (notificationListener != null) {
notificationListener.onNotificationFullRefresh();
}
}