Fix crash when toggling stories.

This commit is contained in:
Alex Hart 2023-07-05 12:16:46 -03:00
parent fb4f41b996
commit d3f779cea9
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ import org.thoughtcrime.securesms.R
class ProgressCardDialogFragment : DialogFragment(R.layout.progress_card_dialog) {
companion object {
fun create(title: String): ProgressCardDialogFragment {
fun create(title: String? = null): ProgressCardDialogFragment {
return ProgressCardDialogFragment().apply {
arguments = ProgressCardDialogFragmentArgs.Builder(title).build().toBundle()
}

View file

@ -45,7 +45,7 @@ class StoriesPrivacySettingsFragment :
})
private val lifecycleDisposable = LifecycleDisposable()
private val progressDisplayManager = DialogFragmentDisplayManager { ProgressCardDialogFragment() }
private val progressDisplayManager = DialogFragmentDisplayManager { ProgressCardDialogFragment.create() }
override fun createAdapters(): Array<MappingAdapter> {
return arrayOf(DSLSettingsAdapter(), PagingMappingAdapter<ContactSearchKey>(), DSLSettingsAdapter())