Explicitly set mime type when sharing PDFs
This commit is contained in:
parent
eb29dffbc1
commit
d14b747ff1
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ fun File.buildShareIntent(context: Context): Intent =
|
|||
"com.wbrawner.skerge.pdfprovider",
|
||||
this@buildShareIntent
|
||||
)
|
||||
data = uri
|
||||
setDataAndTypeAndNormalize(uri, "application/pdf")
|
||||
putExtra(Intent.EXTRA_STREAM, uri)
|
||||
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
||||
}, name)
|
||||
|
|
Loading…
Reference in a new issue