diff --git a/Android/doric/src/main/java/pub/doric/DoricContext.java b/Android/doric/src/main/java/pub/doric/DoricContext.java index ee327a15..3291eb78 100644 --- a/Android/doric/src/main/java/pub/doric/DoricContext.java +++ b/Android/doric/src/main/java/pub/doric/DoricContext.java @@ -62,7 +62,6 @@ public class DoricContext { public static DoricContext create(Context context, String script, String source) { DoricContext doricContext = DoricContextManager.getInstance().createContext(context, script, source); doricContext.script = script; - doricContext.callEntity(DoricConstant.DORIC_ENTITY_CREATE); return doricContext; } @@ -71,6 +70,8 @@ public class DoricContext { .put("width", width) .put("height", height).toJSONObject(); callEntity(DoricConstant.DORIC_ENTITY_INIT, this.initParams); + + callEntity(DoricConstant.DORIC_ENTITY_CREATE); } public AsyncResult callEntity(String methodName, Object... args) {