mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 10:17:56 +00:00
Fix device bottom sheet ISE
This commit is contained in:
committed by
mtang-signal
parent
c63beb5b2c
commit
385ba3590c
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user