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

Commit 2cd8d94e authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

Merge "Move companion device check to the handler" into oc-dev am: 077b1ea1

am: f1c14812

Change-Id: Id74e51010a49907d814e2b32c2138329ecd03ac0
parents fca39621 f1c14812
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);
                        }
                    }
                });
            }
        }