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 } }