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

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