Skip to content

Commit 46c2f84

Browse files
authored
Merge pull request #492 from gukeming/master
fix bug android webview httperror exception #491
2 parents 3ed2ada + 07fe92a commit 46c2f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/flutter_webview_plugin/BrowserClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void onReceivedError(WebView view, int errorCode, String description, Str
104104
super.onReceivedError(view, errorCode, description, failingUrl);
105105
Map<String, Object> data = new HashMap<>();
106106
data.put("url", failingUrl);
107-
data.put("code", errorCode);
107+
data.put("code", Integer.toString(errorCode));
108108
FlutterWebviewPlugin.channel.invokeMethod("onHttpError", data);
109109
}
110110

0 commit comments

Comments
 (0)