From 7e08a1f321546b82a0b6d461bc78b4d980c6654f Mon Sep 17 00:00:00 2001 From: Clark Chen Date: Wed, 19 Jul 2023 14:10:42 -0400 Subject: [PATCH] Only show one safety number education dialog at a time. --- .../verify/PnpSafetyNumberEducationDialogFragment.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/verify/PnpSafetyNumberEducationDialogFragment.kt b/app/src/main/java/org/thoughtcrime/securesms/verify/PnpSafetyNumberEducationDialogFragment.kt index 5bef976f1a..193fffc1b5 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/verify/PnpSafetyNumberEducationDialogFragment.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/verify/PnpSafetyNumberEducationDialogFragment.kt @@ -65,7 +65,9 @@ class PnpSafetyNumberEducationDialogFragment : FixedRoundedCornerBottomSheetDial } val fragment = PnpSafetyNumberEducationDialogFragment() - fragment.show(fragmentManager, BottomSheetUtil.STANDARD_BOTTOM_SHEET_FRAGMENT_TAG) + if (fragmentManager.findFragmentByTag(BottomSheetUtil.STANDARD_BOTTOM_SHEET_FRAGMENT_TAG) == null) { + fragment.show(fragmentManager, BottomSheetUtil.STANDARD_BOTTOM_SHEET_FRAGMENT_TAG) + } } } }