Loading app/src/main/java/foundation/e/blisslauncher/features/notification/NotificationService.java +3 −4 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ public class NotificationService extends NotificationListenerService { NotificationRepository mNotificationRepository; private boolean mDotsEnabled; private boolean mAreDotsEnabled; private SettingsCache mSettingsCache; private SettingsCache.OnChangeListener mNotificationSettingsChangedListener; Loading @@ -30,7 +30,6 @@ public class NotificationService extends NotificationListenerService { super.onCreate(); mNotificationRepository = NotificationRepository.getNotificationRepository(); // Register an observer to rebind the notification listener when dots are re-enabled. mSettingsCache = SettingsCache.INSTANCE.get(this); mNotificationSettingsChangedListener = this::onNotificationSettingsChanged; mSettingsCache.register(NOTIFICATION_BADGING_URI, Loading @@ -46,7 +45,7 @@ public class NotificationService extends NotificationListenerService { } private void onNotificationSettingsChanged(boolean areNotificationDotsEnabled) { mDotsEnabled = areNotificationDotsEnabled; mAreDotsEnabled = areNotificationDotsEnabled; if (!areNotificationDotsEnabled && sIsConnected) { requestUnbind(); updateNotifications(); Loading Loading @@ -75,7 +74,7 @@ public class NotificationService extends NotificationListenerService { } private void updateNotifications() { if (!mDotsEnabled) { if (!mAreDotsEnabled) { mNotificationRepository.updateNotification(Collections.emptyList()); return; } Loading Loading
app/src/main/java/foundation/e/blisslauncher/features/notification/NotificationService.java +3 −4 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ public class NotificationService extends NotificationListenerService { NotificationRepository mNotificationRepository; private boolean mDotsEnabled; private boolean mAreDotsEnabled; private SettingsCache mSettingsCache; private SettingsCache.OnChangeListener mNotificationSettingsChangedListener; Loading @@ -30,7 +30,6 @@ public class NotificationService extends NotificationListenerService { super.onCreate(); mNotificationRepository = NotificationRepository.getNotificationRepository(); // Register an observer to rebind the notification listener when dots are re-enabled. mSettingsCache = SettingsCache.INSTANCE.get(this); mNotificationSettingsChangedListener = this::onNotificationSettingsChanged; mSettingsCache.register(NOTIFICATION_BADGING_URI, Loading @@ -46,7 +45,7 @@ public class NotificationService extends NotificationListenerService { } private void onNotificationSettingsChanged(boolean areNotificationDotsEnabled) { mDotsEnabled = areNotificationDotsEnabled; mAreDotsEnabled = areNotificationDotsEnabled; if (!areNotificationDotsEnabled && sIsConnected) { requestUnbind(); updateNotifications(); Loading Loading @@ -75,7 +74,7 @@ public class NotificationService extends NotificationListenerService { } private void updateNotifications() { if (!mDotsEnabled) { if (!mAreDotsEnabled) { mNotificationRepository.updateNotification(Collections.emptyList()); return; } Loading