Make file name of exports consistent

pull/1563/head
Michael Schättgen 3 months ago
parent 337cb74f72
commit 51f656dd6b

@ -296,7 +296,7 @@ public class ImportExportPreferencesFragment extends PreferencesFragment {
boolean encrypt = checkBoxEncrypt.isChecked();
try {
VaultBackupManager.FileInfo fileInfo = getExportFileInfo(pos, encrypt);
file = File.createTempFile(fileInfo.getFilename() + "-", "." + fileInfo.getExtension(), getExportCacheDir());
file = new File(getExportCacheDir(), fileInfo.toString());
} catch (IOException e) {
e.printStackTrace();
Dialogs.showErrorDialog(requireContext(), R.string.exporting_vault_error, e);

Loading…
Cancel
Save