Merge pull request #1898 from vector-im/feature/fix_crash

Fix crash reported by RageShake
This commit is contained in:
Benoit Marty 2020-08-12 11:53:54 +02:00 committed by GitHub
commit 80d5368d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}