Skip to content

Commit f540cd8

Browse files
committed
Avoid the file picker adding .zip for XML exports
We were setting the MIME type of the intent to select the target export file to application/zip. This made the resulting file end up with .gnca.zip extension.
1 parent 011440c commit f540cd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/gnucash/android/ui/export/ExportFormFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ private void selectExportFile() {
502502
createIntent.setType("text/*").addCategory(Intent.CATEGORY_OPENABLE);
503503
String bookName = BooksDbAdapter.getInstance().getActiveBookDisplayName();
504504

505-
if (mExportFormat == ExportFormat.XML || mExportFormat == ExportFormat.QIF) {
505+
if (mExportFormat == ExportFormat.QIF) {
506506
createIntent.setType("application/zip");
507507
}
508508

0 commit comments

Comments
 (0)