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 {

View File

@ -1,4 +1,4 @@
#Sat Mar 06 06:37:14 PST 2021
#Tue Nov 03 16:00:32 CET 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME