Merge "Exception when performing the global gestrue to enable accessibility." into jb-mr1-dev
diff --git a/policy/src/com/android/internal/policy/impl/EnableAccessibilityController.java b/policy/src/com/android/internal/policy/impl/EnableAccessibilityController.java
index 889463b..71b0d53 100644
--- a/policy/src/com/android/internal/policy/impl/EnableAccessibilityController.java
+++ b/policy/src/com/android/internal/policy/impl/EnableAccessibilityController.java
@@ -40,6 +40,7 @@
 
 import com.android.internal.R;
 
+import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
 
@@ -131,8 +132,9 @@
 
     private static List<AccessibilityServiceInfo> getInstalledSpeakingAccessibilityServices(
             Context context) {
-        List<AccessibilityServiceInfo> services = AccessibilityManager.getInstance(
-                context).getInstalledAccessibilityServiceList();
+        List<AccessibilityServiceInfo> services = new ArrayList<AccessibilityServiceInfo>();
+        services.addAll(AccessibilityManager.getInstance(context)
+                .getInstalledAccessibilityServiceList());
         Iterator<AccessibilityServiceInfo> iterator = services.iterator();
         while (iterator.hasNext()) {
             AccessibilityServiceInfo service = iterator.next();