Skip to content

Commit

Permalink
Merge pull request #2081 from Infomaniak/fix-lifecycle-crash
Browse files Browse the repository at this point in the history
fix: DownloadAttachmentProgressFragment lifecycle crash
  • Loading branch information
FabianDevel authored Oct 18, 2024
2 parents cd67bcf + 873b6ea commit 7e21d85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class DownloadAttachmentProgressDialog : DialogFragment() {
}

private fun downloadAttachment() {
downloadAttachmentViewModel.downloadAttachment().observe(this) { cachedAttachment ->
downloadAttachmentViewModel.downloadAttachment().observe(viewLifecycleOwner) { cachedAttachment ->
if (cachedAttachment == null) {
popBackStackWithError()
} else {
Expand Down

0 comments on commit 7e21d85

Please sign in to comment.