Prevent crash from showing bottom sheet.

This commit is contained in:
Nicholas Tinsley 2024-07-09 18:12:32 -04:00
parent c134c3033e
commit 6e742ce770

View file

@ -160,7 +160,7 @@ class ContactSupportBottomSheetFragment : ComposeBottomSheetDialogFragment() {
}
fun showSafely(fm: FragmentManager, tag: String) {
if (!isAdded) {
if (!isAdded && !fm.isStateSaved) {
show(fm, tag)
}
}