mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix crash when toggling stories.
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user