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

Commit 623c48cc authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

Don\\\'t iterate over a list items are removed from. am: 00d9d9f1 am: a45f1e74

am: 2ea9c928

Change-Id: Ibc9e5d64a67db6c4953374c8a8e7bb7f4dc292e5
parents a831c0e3 2ea9c928
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3898,7 +3898,9 @@ public class NotificationManagerService extends SystemService {
        @Override
        public void onUserSwitched(int user) {
            synchronized (mNotificationList) {
                for (ManagedServiceInfo info : mServices) {
                int i = mServices.size()-1;
                while (i --> 0) {
                    final ManagedServiceInfo info = mServices.get(i);
                    unregisterService(info.service, info.userid);
                }
            }