Skip to content

Commit e3d2b8a

Browse files
authored
Merge pull request #18 from defold/Issue-14-android-callback-result-ok-not-fired
Made sure it works for open_raw() as well
2 parents 26d7bcf + e4b0aab commit e3d2b8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webview/src/java/com/defold/webview/WebViewJNI.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ public void loadRaw(final String html, final int webview_id, final int request_i
373373
public void run() {
374374
WebViewJNI.this.infos[webview_id].webviewClient.reset(request_id);
375375
WebViewJNI.this.infos[webview_id].webviewChromeClient.reset(request_id);
376+
WebViewJNI.this.infos[webview_id].webviewClient.setContinueLoadingUrl("file:///android_res/");
376377
WebViewJNI.this.infos[webview_id].webview.loadDataWithBaseURL("file:///android_res/", html, "text/html", "utf-8", null);
377378
setVisibleInternal(WebViewJNI.this.infos[webview_id], hidden != 0 ? 0 : 1);
378379
}

0 commit comments

Comments
 (0)