fix commen, add description
This commit is contained in:
parent
dc0e6d63cf
commit
18bdc27d59
|
|
@ -124,6 +124,12 @@ open class BaseWebView @JvmOverloads constructor(
|
|||
binding.webView.onWebViewDisplayedContent = action
|
||||
}
|
||||
|
||||
/**
|
||||
* loadWithOverviewMode loads the WebView completely zoomed out
|
||||
* useWideViewPort sets page size to fit screen
|
||||
* setInitialScale(1) prevents horizontal scrolling when
|
||||
* page has horizontal paddings
|
||||
*/
|
||||
@SuppressLint("SetJavaScriptEnabled")
|
||||
open fun setWebViewPreferences() {
|
||||
binding.webView.apply {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ open class BaseWebViewClient(private val callback: WebViewCallback, private val
|
|||
}
|
||||
|
||||
/**
|
||||
* onReceivedError don't calls when url is "about:blank" (url string isBlank)
|
||||
* onReceivedError isn't called when url is "about:blank" (url string isBlank)
|
||||
*/
|
||||
override fun onReceivedError(view: WebView, request: WebResourceRequest, error: WebResourceError) {
|
||||
if (error.errorCode != -10) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue