Merge pull request #4729 from vector-im/feature/adm/avoid-leaking-window-when-showing-loading

Avoid leaking Activity Window when showing loading dialog
This commit is contained in:
Benoit Marty 2021-12-16 11:07:23 +01:00 committed by GitHub
commit 3b35be510f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
changelog.d/4713.misc Normal file
View File

@ -0,0 +1 @@
Avoids leaking the activity windows when loading dialogs are displaying

View File

@ -151,6 +151,7 @@ abstract class VectorBaseFragment<VB : ViewBinding> : Fragment(), MavericksView
override fun onDestroyView() {
Timber.i("onDestroyView Fragment ${javaClass.simpleName}")
_binding = null
dismissLoadingDialog()
super.onDestroyView()
}