mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Merge pull request #1898 from vector-im/feature/fix_crash
Fix crash reported by RageShake
This commit is contained in:
commit
80d5368d75
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue