From cca0965a1baa0c36d361127f94076943dd3d2803 Mon Sep 17 00:00:00 2001 From: Jun Su Date: Tue, 21 May 2013 17:24:32 +0800 Subject: [PATCH] framework:base: iterator error in singletone provider In case of singletone provider, we don't count it in the guset user. After we remove it from the array, and resize the array, need to move iterator back. Change-Id: I99920a6beccc9de0e67ffeb632b1940efaee10b9 --- services/java/com/android/server/am/ActivityManagerService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index c6efe15b9ceda..3582a41539741 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -6267,6 +6267,7 @@ public final class ActivityManagerService extends ActivityManagerNative // it runs in the process of the default user. Get rid of it. providers.remove(i); N--; + i--; continue; }