Skip to content

Commit 663230d

Browse files
committed
Don't restrict the files that can be selected on export
When exporting to URI (SAF) we set a MIME type in the intent to select the target file. By default we used text/*, which restricts the files allowed to be selected with the file picker to text files. The problem is XML exports use the .gnca extension, which is not recognized as text. This changes the MIME type to */* to allow to select any file.
1 parent f540cd8 commit 663230d

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
@@ -499,7 +499,7 @@ private void setExportUriText(String filepath){
499499
*/
500500
private void selectExportFile() {
501501
Intent createIntent = new Intent(Intent.ACTION_CREATE_DOCUMENT);
502-
createIntent.setType("text/*").addCategory(Intent.CATEGORY_OPENABLE);
502+
createIntent.setType("*/*").addCategory(Intent.CATEGORY_OPENABLE);
503503
String bookName = BooksDbAdapter.getInstance().getActiveBookDisplayName();
504504

505505
if (mExportFormat == ExportFormat.QIF) {

0 commit comments

Comments
 (0)