feat:adjust onCreate timeline

This commit is contained in:
pengfei.zhou 2019-10-25 13:50:25 +08:00
parent 8ce32b8769
commit c4864699b2

View File

@ -62,7 +62,6 @@ public class DoricContext {
public static DoricContext create(Context context, String script, String source) { public static DoricContext create(Context context, String script, String source) {
DoricContext doricContext = DoricContextManager.getInstance().createContext(context, script, source); DoricContext doricContext = DoricContextManager.getInstance().createContext(context, script, source);
doricContext.script = script; doricContext.script = script;
doricContext.callEntity(DoricConstant.DORIC_ENTITY_CREATE);
return doricContext; return doricContext;
} }
@ -71,6 +70,8 @@ public class DoricContext {
.put("width", width) .put("width", width)
.put("height", height).toJSONObject(); .put("height", height).toJSONObject();
callEntity(DoricConstant.DORIC_ENTITY_INIT, this.initParams); callEntity(DoricConstant.DORIC_ENTITY_INIT, this.initParams);
callEntity(DoricConstant.DORIC_ENTITY_CREATE);
} }
public AsyncResult<JSDecoder> callEntity(String methodName, Object... args) { public AsyncResult<JSDecoder> callEntity(String methodName, Object... args) {