Fix device bottom sheet ISE

This commit is contained in:
Michelle Tang
2024-08-08 14:15:53 -04:00
committed by mtang-signal
parent c63beb5b2c
commit 385ba3590c

View File

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