Merge pull request #165 from jbuhacoff/master+issue#164
failed to open attachment with mixed-case mimetype
This commit is contained in:
commit
4042e64896
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue