diff --git a/app/src/main/java/com/wbrawner/skerge/PdfUtils.kt b/app/src/main/java/com/wbrawner/skerge/PdfUtils.kt index 51f1568..a6a456d 100644 --- a/app/src/main/java/com/wbrawner/skerge/PdfUtils.kt +++ b/app/src/main/java/com/wbrawner/skerge/PdfUtils.kt @@ -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)