Skip to content

Commit

Permalink
* [android] add callAddElement debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
zshshr committed Sep 20, 2016
1 parent e399306 commit 95e3680
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@
import android.os.Handler.Callback;
import android.os.Looper;
import android.os.Message;
import android.os.SystemClock;
import android.text.TextUtils;

import com.alibaba.fastjson.JSON;
Expand Down Expand Up @@ -529,10 +528,18 @@ public int callNative(String instanceId, String tasks, String callback) {

public int callAddElement(String instanceId, String ref,String dom,String index, String callback){

if (WXEnvironment.isApkDebugable()) {
mLodBuilder.append("[WXBridgeManager] callNative::callAddElement >>>> instanceId:").append(instanceId)
.append(", ref:").append(ref).append(", dom:").append(dom).append(", callback:").append(callback);
WXLogUtils.d(mLodBuilder.substring(0));
mLodBuilder.setLength(0);
}

if(mDestroyedInstanceId!=null && mDestroyedInstanceId.contains(instanceId)){
return IWXBridge.DESTROY_INSTANCE;
}


if (WXSDKManager.getInstance().getSDKInstance(instanceId) != null) {
long start = System.currentTimeMillis();
JSONObject domObject = JSON.parseObject(dom);
Expand Down

0 comments on commit 95e3680

Please sign in to comment.