修复 打包后应用后台重新进入会重新加载的问题

This commit is contained in:
hyb1996
2019-01-14 10:11:57 +08:00
parent 5d09249a2f
commit a0e9dbcc2e
5 changed files with 7 additions and 9 deletions

View File

@@ -68,7 +68,7 @@ open class RhinoJavaScriptEngine(private val mAndroidContext: android.content.Co
runtime.topLevelScope = mScriptable
}
public override fun doExecution(source: JavaScriptSource): Any {
public override fun doExecution(source: JavaScriptSource): Any? {
var reader = source.nonNullScriptReader
try {
reader = preprocess(reader)