Fix crashing when deleting a custom story.

This commit is contained in:
Alex Hart
2023-07-11 10:06:07 -03:00
committed by Greyson Parrelli
parent 0ea6d9205d
commit 1d0582867b
3 changed files with 6 additions and 3 deletions

View File

@@ -1695,7 +1695,7 @@ class ConversationFragment :
}
private fun performAttachmentSave(attachments: Set<SaveAttachmentUtil.SaveAttachment>) {
val progressDialog = ProgressCardDialogFragment()
val progressDialog = ProgressCardDialogFragment.create()
progressDialog.arguments = ProgressCardDialogFragmentArgs.Builder(
resources.getQuantityString(R.plurals.ConversationFragment_saving_n_attachments_to_sd_card, attachments.size, attachments.size)
).build().toBundle()