Merge pull request #1563 from michaelschattgen/feature/export-file-name-share

Make file name of exports consistent
This commit is contained in:
Alexander Bakker 2024-12-02 21:11:46 +01:00 committed by GitHub
commit c616a4f43c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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