Merge pull request #165 from jbuhacoff/master+issue#164

failed to open attachment with mixed-case mimetype
This commit is contained in:
Tibor Kaputa 2021-07-23 12:25:51 +02:00 committed by GitHub
commit 4042e64896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {