Fix crash when bottom sheet is being dismissed

This commit is contained in:
Bnyro 2023-03-24 16:11:56 +01:00
parent 11dc261f91
commit 0924c48fab

View File

@ -38,7 +38,9 @@ open class BaseBottomSheet : ExpandedBottomSheet() {
lifecycleScope.launch {
dialog?.hide()
listener?.invoke(index)
dismiss()
runCatching {
dismiss()
}
}
}
}