Skip to content

Commit

Permalink
Merge pull request #6865 from robolectric/piper_410475180
Browse files Browse the repository at this point in the history
Fix SDK version check for onPageFinished() call. It should be available for all SDK versions instead. See https://developer.android.com/reference/android/webkit/WebViewClient#onPageFinished(android.webkit.WebView,%20java.lang.String)
  • Loading branch information
hoisie committed Nov 17, 2021
2 parents c1c3c0e + c00f645 commit 56cb74c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -277,7 +277,7 @@ private void performSuccessfulPageLoad(String url) {
webChromeClient.onReceivedTitle(realWebView, url);
webChromeClient.onProgressChanged(realWebView, 100);
}
if (webViewClient != null && VERSION.SDK_INT >= 23) {
if (webViewClient != null) {
webViewClient.onPageFinished(realWebView, url);
}
});
Expand Down

0 comments on commit 56cb74c

Please sign in to comment.