Make file name of exports consistent

This commit is contained in:
Michael Schättgen 2024-12-02 18:06:12 +01:00
parent 337cb74f72
commit 51f656dd6b

View file

@ -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);