Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tevincent committed Aug 13, 2024
1 parent 59b812b commit fd40177
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class DownloadAttachmentProgressDialog : DialogFragment() {
private fun popBackStackWithError() {
viewLifecycleOwner.lifecycleScope.launch {
mainViewModel.isNetworkAvailable.first { it != null }?.let { isNetworkAvailable ->
showSnackbar(if (isNetworkAvailable) R.string.anErrorHasOccurred else R.string.noConnection)
showSnackbar(title = if (isNetworkAvailable) R.string.anErrorHasOccurred else R.string.noConnection)
findNavController().popBackStack()
}
}
Expand Down

0 comments on commit fd40177

Please sign in to comment.