From f480bd0c7e59f707aae9fbcbcad314b42687f822 Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Fri, 24 Nov 2017 21:40:05 -0500 Subject: [PATCH] Report the correct mime type for exported data Technically text/plain is correct-ish, but text/csv is more correct. --- app/src/main/java/protect/card_locker/ImportExportActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/protect/card_locker/ImportExportActivity.java b/app/src/main/java/protect/card_locker/ImportExportActivity.java index 877dabc37..22978fb86 100644 --- a/app/src/main/java/protect/card_locker/ImportExportActivity.java +++ b/app/src/main/java/protect/card_locker/ImportExportActivity.java @@ -340,7 +340,7 @@ public class ImportExportActivity extends AppCompatActivity Uri outputUri = FileProvider.getUriForFile(ImportExportActivity.this, BuildConfig.APPLICATION_ID, path); Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_STREAM, outputUri); - sendIntent.setType("text/plain"); + sendIntent.setType("text/csv"); // set flag to give temporary permission to external app to use the FileProvider sendIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);