dismisses any potential loading dialogs when the linked fragment is destroyed

- fixes leaking the activity window when the fragment is destroyed
This commit is contained in:
Adam Brown 2021-12-15 18:16:10 +00:00
parent 4949a06343
commit 4c238e81cf
1 changed files with 1 additions and 0 deletions

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()
}