diff --git a/.changes/android-url.md b/.changes/android-url.md new file mode 100644 index 000000000..9d062d9f8 --- /dev/null +++ b/.changes/android-url.md @@ -0,0 +1,4 @@ +--- +"wry": patch +--- +Fix `WebView::url` getter on Android. diff --git a/.changes/fix-with_url.md b/.changes/fix-with_url.md new file mode 100644 index 000000000..655ce1245 --- /dev/null +++ b/.changes/fix-with_url.md @@ -0,0 +1,5 @@ +--- +"wry": patch +--- + +Fix the `WebViewBuilder::with_url` when the projet use `mimalloc` diff --git a/.changes/fix-with_url.txt b/.changes/fix-with_url.txt deleted file mode 100644 index 0dd78c712..000000000 --- a/.changes/fix-with_url.txt +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wry": patch ---- - -Fix the WebViewBuilder::with_url when the projet use mimalloc (https://github.com/tauri-apps/wry/issues/863) \ No newline at end of file diff --git a/src/webview/android/main_pipe.rs b/src/webview/android/main_pipe.rs index 11290f213..6e0dc2c67 100644 --- a/src/webview/android/main_pipe.rs +++ b/src/webview/android/main_pipe.rs @@ -177,7 +177,7 @@ impl MainPipe<'_> { WebViewMessage::GetUrl(tx) => { if let Some(webview) = &self.webview { let url = env - .call_method(webview.as_obj(), "getUrl", "()Ljava/lang/String", &[]) + .call_method(webview.as_obj(), "getUrl", "()Ljava/lang/String;", &[]) .and_then(|v| v.l()) .and_then(|s| env.get_string(s.into())) .map(|u| u.to_string_lossy().into())