Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
* [Android] Fix ConcurrentModification Exception. (#1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen committed Aug 3, 2018
1 parent 9fc2cc6 commit 52b66e5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
Expand All @@ -43,7 +41,7 @@ class RenderContextImpl implements RenderContext {

public RenderContextImpl(WXSDKInstance instance) {
mWXSDKInstance = instance;
mRegistry = new ArrayMap<>();
mRegistry = new ConcurrentHashMap<>();
}

public void destroy() {
Expand Down

0 comments on commit 52b66e5

Please sign in to comment.