Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 077b1ea1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Move companion device check to the handler" into oc-dev

parents d84ff64f 018aa621
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -5089,15 +5089,15 @@ public class NotificationManagerService extends SystemService {
                if (!serviceInfo.enabledAndUserMatches(UserHandle.getCallingUserId())) {
                    continue;
                }
                if (!hasCompanionDevice(serviceInfo)) {
                    continue;
                }

                mHandler.post(new Runnable() {
                    @Override
                    public void run() {
                        if (hasCompanionDevice(serviceInfo)) {
                            notifyNotificationChannelChanged(
                                    serviceInfo, pkg, user, channel, modificationType);
                        }
                    }
                });
            }
        }
@@ -5112,15 +5112,15 @@ public class NotificationManagerService extends SystemService {
                if (!serviceInfo.enabledAndUserMatches(UserHandle.getCallingUserId())) {
                    continue;
                }
                if (!hasCompanionDevice(serviceInfo)) {
                    continue;
                }

                mHandler.post(new Runnable() {
                    @Override
                    public void run() {
                        if (hasCompanionDevice(serviceInfo)) {
                            notifyNotificationChannelGroupChanged(
                                    serviceInfo, pkg, user, group, modificationType);
                        }
                    }
                });
            }
        }