Skip to content

Commit

Permalink
Merge pull request #256 from rydein/fix/reload-url
Browse files Browse the repository at this point in the history
fix: reloadUrl will not return Future
  • Loading branch information
charafau authored Mar 13, 2019
2 parents 3ef34a1 + 9fbc0c7 commit b22c233
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ private void stopLoading(MethodCall call, MethodChannel.Result result) {
if (webViewManager != null) {
webViewManager.stopLoading(call, result);
}
result.success(null);
}

private void close(MethodCall call, MethodChannel.Result result) {
Expand All @@ -165,6 +166,7 @@ private void back(MethodCall call, MethodChannel.Result result) {
if (webViewManager != null) {
webViewManager.back(call, result);
}
result.success(null);
}

/**
Expand All @@ -174,6 +176,7 @@ private void forward(MethodCall call, MethodChannel.Result result) {
if (webViewManager != null) {
webViewManager.forward(call, result);
}
result.success(null);
}

/**
Expand All @@ -183,13 +186,15 @@ private void reload(MethodCall call, MethodChannel.Result result) {
if (webViewManager != null) {
webViewManager.reload(call, result);
}
result.success(null);
}

private void reloadUrl(MethodCall call, MethodChannel.Result result) {
if (webViewManager != null) {
String url = call.argument("url");
webViewManager.reloadUrl(url);
}
result.success(null);
}

private void eval(MethodCall call, final MethodChannel.Result result) {
Expand All @@ -210,12 +215,14 @@ private void hide(MethodCall call, final MethodChannel.Result result) {
if (webViewManager != null) {
webViewManager.hide(call, result);
}
result.success(null);
}

private void show(MethodCall call, final MethodChannel.Result result) {
if (webViewManager != null) {
webViewManager.show(call, result);
}
result.success(null);
}

private void cleanCookies(MethodCall call, final MethodChannel.Result result) {
Expand Down

0 comments on commit b22c233

Please sign in to comment.