Fix crash reported by RageShake

This commit is contained in:
Benoit Marty 2020-08-05 13:32:36 +02:00 committed by Benoit Marty
parent 98aeee9c5a
commit ab9950ee73
2 changed files with 9 additions and 0 deletions

View file

@ -10,6 +10,7 @@ Improvements 🙌:
Bugfix 🐛:
- Fix invisible toolbar (Status.im theme) (#1746)
- Fix relative date time formatting (#822)
- Fix crash reported by RageShake
Translations 🗣:
- Add PlayStore description resources in the Triple-T format, to let Weblate handle them

View file

@ -77,6 +77,10 @@ class LoginCaptchaFragment @Inject constructor(
override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) {
super.onPageStarted(view, url, favicon)
if (!isAdded) {
return
}
// Show loader
loginCaptchaProgress.isVisible = true
}
@ -84,6 +88,10 @@ class LoginCaptchaFragment @Inject constructor(
override fun onPageFinished(view: WebView, url: String) {
super.onPageFinished(view, url)
if (!isAdded) {
return
}
// Hide loader
loginCaptchaProgress.isVisible = false
}