Skip to content

Commit

Permalink
Show just correct error message
Browse files Browse the repository at this point in the history
  • Loading branch information
JuancaG05 committed Nov 22, 2023
1 parent de1690b commit 38be4db
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1795,17 +1795,15 @@ class FileDisplayActivity : FileActivity(),
if (uiResult.error is FileNotFoundException) {
showMessageInSnackbar(message = getString(R.string.deep_link_user_no_access))
changeUser()
}
showMessageInSnackbar(
message =
getString(
} else {
showMessageInSnackbar(message = getString(
if (uiResult.error is DeepLinkException) {
R.string.invalid_deep_link_format
} else {
R.string.default_error_msg
}
)
)
))
}
}
}
}
Expand Down

0 comments on commit 38be4db

Please sign in to comment.