Merge "Ensure notification listener is connected before getting notifications" into ub-launcher3-dorval-polish
am: 3bf231d9af
Change-Id: I8884964000a24a30e9f74df9954acba2892aa5f2
This commit is contained in:
commit
9dcc4744f0
|
@ -127,8 +127,9 @@ public class NotificationListener extends NotificationListenerService {
|
|||
}
|
||||
sNotificationsChangedListener = listener;
|
||||
|
||||
if (sNotificationListenerInstance != null) {
|
||||
sNotificationListenerInstance.onNotificationFullRefresh();
|
||||
NotificationListener notificationListener = getInstanceIfConnected();
|
||||
if (notificationListener != null) {
|
||||
notificationListener.onNotificationFullRefresh();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue