Skip to content

Commit

Permalink
Fix crash when leaving recents screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Jays2Kings committed Sep 27, 2023
1 parent 6a9b0a6 commit 2ed4de0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2ed4de0

Please sign in to comment.