android: fix when reload clear retained java value

This commit is contained in:
pengfei.zhou 2022-02-17 11:29:28 +08:00 committed by osborn
parent 894cc91dd6
commit d9c53f328b

View File

@ -244,6 +244,7 @@ public class DoricContext {
} }
public void reload(String script) { public void reload(String script) {
retainedJavaValues.clear();
getDriver().destroyContext(getContextId()); getDriver().destroyContext(getContextId());
for (DoricJavaPlugin javaPlugin : mPluginMap.values()) { for (DoricJavaPlugin javaPlugin : mPluginMap.values()) {
javaPlugin.onTearDown(); javaPlugin.onTearDown();