Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Changed _webViewClient and GetWebViewClient() method to return base c…
Browse files Browse the repository at this point in the history
…lass
  • Loading branch information
jcmanke committed Sep 17, 2018
1 parent 2973567 commit 16134f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class WebViewRenderer : ViewRenderer<WebView, AWebView>, IWebViewDelegate
{
public const string AssetBaseUrl = "file:///android_asset/";

FormsWebViewClient _webViewClient;
WebViewClient _webViewClient;
FormsWebChromeClient _webChromeClient;

public IWebViewController ElementController => Element;
Expand Down Expand Up @@ -64,7 +64,7 @@ protected override void Dispose(bool disposing)
base.Dispose(disposing);
}

protected virtual FormsWebViewClient GetFormsWebViewClient()
protected virtual WebViewClient GetWebViewClient()
{
return new FormsWebViewClient(this);
}
Expand Down Expand Up @@ -95,7 +95,7 @@ protected override void OnElementChanged(ElementChangedEventArgs<WebView> e)
webView.LayoutParameters = new global::Android.Widget.AbsoluteLayout.LayoutParams(LayoutParams.MatchParent, LayoutParams.MatchParent, 0, 0);
#pragma warning restore 618

_webViewClient = GetFormsWebViewClient();
_webViewClient = GetWebViewClient();
webView.SetWebViewClient(_webViewClient);

_webChromeClient = GetFormsWebChromeClient();
Expand Down

0 comments on commit 16134f4

Please sign in to comment.