Fix crash when leaving recents screen

This commit is contained in:
Jays2Kings 2023-09-27 09:24:09 -07:00
parent 6a9b0a66db
commit 2ed4de0116

View file

@ -541,7 +541,9 @@ class RecentsController(bundle: Bundle? = null) :
override fun onDestroy() {
super.onDestroy()
binding.downloadBottomSheet.root.onDestroy()
if (isBindingInitialized) {
binding.downloadBottomSheet.root.onDestroy()
}
snack?.dismiss()
snack = null
}