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