mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-26 17:43:11 +01:00
Fix crash reported by RageShake
This commit is contained in:
parent
98aeee9c5a
commit
ab9950ee73
@ -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…
Reference in New Issue
Block a user