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

am: 3bf231d9af

Change-Id: I8884964000a24a30e9f74df9954acba2892aa5f2
This commit is contained in:
Tony Wickham 2017-06-28 23:56:07 +00:00 committed by android-build-merger
commit 9dcc4744f0
1 changed files with 3 additions and 2 deletions

View File

@ -127,8 +127,9 @@ public class NotificationListener extends NotificationListenerService {
}
sNotificationsChangedListener = listener;
if (sNotificationListenerInstance != null) {
sNotificationListenerInstance.onNotificationFullRefresh();
NotificationListener notificationListener = getInstanceIfConnected();
if (notificationListener != null) {
notificationListener.onNotificationFullRefresh();
}
}