Skip to content

Commit 10d7733

Browse files
committed
Avoid the backup file picker adding .zip
We were setting the MIME type of the intent to select the backup file to application/zip. This made the resulting file end up with .gnca.zip extension.
1 parent d114487 commit 10d7733

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/gnucash/android/ui/settings/BackupPreferenceFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public boolean onPreferenceClick(Preference preference) {
175175

176176
if (key.equals(getString(R.string.key_backup_location))){
177177
Intent createIntent = new Intent(Intent.ACTION_CREATE_DOCUMENT);
178-
createIntent.setType("application/zip");
178+
createIntent.setType("*/*");
179179
createIntent.addCategory(Intent.CATEGORY_OPENABLE);
180180
String bookName = BooksDbAdapter.getInstance().getActiveBookDisplayName();
181181
createIntent.putExtra(Intent.EXTRA_TITLE, Exporter.sanitizeFilename(bookName)+ "_" + getString(R.string.label_backup_filename));

0 commit comments

Comments
 (0)