Skip to content

Commit

Permalink
fix(DownloadAttachmentProgressDialog): Fix lifecycle crash
Browse files Browse the repository at this point in the history
fixes MAIL-ANDROID-F1P
  • Loading branch information
FabianDevel committed Oct 18, 2024
1 parent cd67bcf commit 873b6ea
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 873b6ea

Please sign in to comment.