Release VectorBaseBottomSheetDialogFragment bindings when view destroyed

Signed-off-by: aqulu <dev@aqu.lu>
This commit is contained in:
aqulu 2020-12-20 13:55:32 +09:00
parent 2b780a8b76
commit 0059fdf174
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ abstract class VectorBaseBottomSheetDialogFragment<VB: ViewBinding> : BottomShee
@CallSuper @CallSuper
override fun onDestroyView() { override fun onDestroyView() {
uiDisposables.clear() uiDisposables.clear()
_binding = null
super.onDestroyView() super.onDestroyView()
} }