fix: failed to open attachment with mixed-case mimetype

This commit is contained in:
Jonathan Buhacoff 2021-07-22 18:46:11 -07:00
parent 8e9158c09b
commit 37fbf8ae8e
2 changed files with 6 additions and 6 deletions

View file

@ -314,7 +314,7 @@ class ThreadAdapter(
private fun launchViewIntent(uri: Uri, mimetype: String, filename: String) {
Intent().apply {
action = Intent.ACTION_VIEW
setDataAndType(uri, mimetype)
setDataAndType(uri, mimetype.toLowerCase())
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
try {