mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-18 12:40:46 +01:00
Merge pull request #165 from jbuhacoff/master+issue#164
failed to open attachment with mixed-case mimetype
This commit is contained in:
commit
4042e64896
@ -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…
x
Reference in New Issue
Block a user