android:fix context call method error

This commit is contained in:
pengfei.zhou 2020-03-03 18:46:24 +08:00 committed by osborn
parent 26c367d50c
commit ef77d5ec95

View File

@ -101,7 +101,6 @@ public class DoricContext {
this.mContextId = contextId; this.mContextId = contextId;
this.source = source; this.source = source;
this.extra = extra; this.extra = extra;
callEntity(DoricConstant.DORIC_ENTITY_CREATE);
} }
public String getSource() { public String getSource() {
@ -116,6 +115,7 @@ public class DoricContext {
DoricContext doricContext = DoricContextManager.getInstance().createContext(context, script, source, extra); DoricContext doricContext = DoricContextManager.getInstance().createContext(context, script, source, extra);
doricContext.script = script; doricContext.script = script;
doricContext.extra = extra; doricContext.extra = extra;
doricContext.callEntity(DoricConstant.DORIC_ENTITY_CREATE);
return doricContext; return doricContext;
} }