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

Commit f1c14812 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

Change-Id: Ibb3dcd97136da1d5d131457c2a2596ccc09c1485
parents 1b92e2d8 077b1ea1
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);
                        }
                    }
                });
            }
        }