From 385ba3590c4f6f4d1fb7c827c0fa2e7abea51f1d Mon Sep 17 00:00:00 2001 From: Michelle Tang Date: Thu, 8 Aug 2024 14:15:53 -0400 Subject: [PATCH] Fix device bottom sheet ISE --- .../components/DeviceSpecificNotificationBottomSheet.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/DeviceSpecificNotificationBottomSheet.kt b/app/src/main/java/org/thoughtcrime/securesms/components/DeviceSpecificNotificationBottomSheet.kt index 90605396a3..c866398299 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/DeviceSpecificNotificationBottomSheet.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/components/DeviceSpecificNotificationBottomSheet.kt @@ -40,12 +40,13 @@ class DeviceSpecificNotificationBottomSheet : ComposeBottomSheetDialogFragment() @JvmStatic fun show(fragmentManager: FragmentManager) { if (fragmentManager.findFragmentByTag(BottomSheetUtil.STANDARD_BOTTOM_SHEET_FRAGMENT_TAG) == null) { - DeviceSpecificNotificationBottomSheet().apply { + val dialog = DeviceSpecificNotificationBottomSheet().apply { arguments = bundleOf( ARG_LINK to DeviceSpecificNotificationConfig.currentConfig.link, ARG_LINK_VERSION to DeviceSpecificNotificationConfig.currentConfig.version ) - }.show(fragmentManager, BottomSheetUtil.STANDARD_BOTTOM_SHEET_FRAGMENT_TAG) + } + BottomSheetUtil.show(fragmentManager, BottomSheetUtil.STANDARD_BOTTOM_SHEET_FRAGMENT_TAG, dialog) SignalStore.uiHints.lastSupportVersionSeen = DeviceSpecificNotificationConfig.currentConfig.version } }