mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 10:20:25 +01:00
Fix crashing when deleting a custom story.
This commit is contained in:
committed by
Greyson Parrelli
parent
0ea6d9205d
commit
1d0582867b
@@ -1,10 +1,12 @@
|
||||
package org.thoughtcrime.securesms.components
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.app.Dialog
|
||||
import android.graphics.Color
|
||||
import android.graphics.drawable.ColorDrawable
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import androidx.annotation.Discouraged
|
||||
import androidx.fragment.app.DialogFragment
|
||||
import androidx.navigation.fragment.navArgs
|
||||
import org.thoughtcrime.securesms.R
|
||||
@@ -12,9 +14,10 @@ import org.thoughtcrime.securesms.R
|
||||
/**
|
||||
* Displays a small progress spinner in a card view, as a non-cancellable dialog fragment.
|
||||
*/
|
||||
class ProgressCardDialogFragment : DialogFragment(R.layout.progress_card_dialog) {
|
||||
class ProgressCardDialogFragment @Discouraged("Use create() instead.") constructor() : DialogFragment(R.layout.progress_card_dialog) {
|
||||
|
||||
companion object {
|
||||
@SuppressLint("DiscouragedApi")
|
||||
fun create(title: String? = null): ProgressCardDialogFragment {
|
||||
return ProgressCardDialogFragment().apply {
|
||||
arguments = ProgressCardDialogFragmentArgs.Builder(title).build().toBundle()
|
||||
|
||||
Reference in New Issue
Block a user