diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index c2892049e64d5..81a8e68b30440 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -5089,14 +5089,14 @@ public class NotificationManagerService extends SystemService { if (!serviceInfo.enabledAndUserMatches(UserHandle.getCallingUserId())) { continue; } - if (!hasCompanionDevice(serviceInfo)) { - continue; - } + mHandler.post(new Runnable() { @Override public void run() { - notifyNotificationChannelChanged( - serviceInfo, pkg, user, channel, modificationType); + if (hasCompanionDevice(serviceInfo)) { + notifyNotificationChannelChanged( + serviceInfo, pkg, user, channel, modificationType); + } } }); } @@ -5112,14 +5112,14 @@ public class NotificationManagerService extends SystemService { if (!serviceInfo.enabledAndUserMatches(UserHandle.getCallingUserId())) { continue; } - if (!hasCompanionDevice(serviceInfo)) { - continue; - } + mHandler.post(new Runnable() { @Override public void run() { - notifyNotificationChannelGroupChanged( - serviceInfo, pkg, user, group, modificationType); + if (hasCompanionDevice(serviceInfo)) { + notifyNotificationChannelGroupChanged( + serviceInfo, pkg, user, group, modificationType); + } } }); }