YorkShen closed pull request #1394: * [Android] Fix ConcurrentModification 
Exception.
URL: https://github.com/apache/incubator-weex/pull/1394
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/android/sdk/src/main/java/com/taobao/weex/ui/RenderContextImpl.java 
b/android/sdk/src/main/java/com/taobao/weex/ui/RenderContextImpl.java
index d5093d1d87..3cca8a441f 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/RenderContextImpl.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/RenderContextImpl.java
@@ -18,9 +18,6 @@
  */
 package com.taobao.weex.ui;
 
-import android.support.v4.util.ArrayMap;
-import android.util.Log;
-
 import com.taobao.weex.WXSDKInstance;
 import com.taobao.weex.dom.RenderContext;
 import com.taobao.weex.ui.component.WXComponent;
@@ -31,6 +28,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
+import java.util.concurrent.ConcurrentHashMap;
 
 /**
  * Class for rendering view. Method in this class should be run in main thread.
@@ -43,7 +41,7 @@
 
   public RenderContextImpl(WXSDKInstance instance) {
     mWXSDKInstance = instance;
-    mRegistry = new ArrayMap<>();
+    mRegistry = new ConcurrentHashMap<>();
   }
 
   public void destroy() {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to