Skip to content

Commit

Permalink
Merge pull request #3 from howardt12345/patch-1
Browse files Browse the repository at this point in the history
Added reloading (Android)
  • Loading branch information
howardt12345 authored Apr 8, 2018
2 parents 3fa200e + 8cb7581 commit 5447940
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public void onMethodCall(MethodCall call, MethodChannel.Result result) {
case "resize":
resize(call, result);
break;
case "reload":
reload(call, result);
break;
default:
result.notImplemented();
break;
Expand Down Expand Up @@ -111,6 +114,11 @@ private void close(MethodCall call, MethodChannel.Result result) {
}
}

private void reload(MethodCall call, MethodChannel.Result result) {
if (webViewManager != null) {
webViewManager.reload(call, result);
}
}
private void eval(MethodCall call, final MethodChannel.Result result) {
if (webViewManager != null) {
webViewManager.eval(call, result);
Expand Down

0 comments on commit 5447940

Please sign in to comment.