Closed art-ylem closed 3 years ago
The callback can be called when view isn't exist. I recommend you to check that
object : WebViewClient() {
override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) {
super.onPageStarted(view, url, favicon)
if (view != null) {
showLoader()
}
}
override fun onPageFinished(view: WebView?, url: String?) {
super.onPageFinished(view, url)
if (view != null) {
hideLoader()
}
}
}
Thanks for your recommendation.
class BasketFragment : BaseFragment(R.layout.fragment_basket) { private val binding by viewBinding(FragmentBasketBinding::bind)
}