Fix crash when toggling stories.
This commit is contained in:
parent
fb4f41b996
commit
d3f779cea9
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue