Report the correct mime type for exported data

Technically text/plain is correct-ish, but text/csv is more correct.
This commit is contained in:
Branden Archer committed 2017-11-25 14:25:47 -05:00
1 parent 5599560258
commit f480bd0c7e
1 file changed
+1 -1
@@ -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);