]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Include the version number in the default file name when exporting setting. https...
authorSoren Stoutner <soren@stoutner.com>
Fri, 9 Oct 2020 21:43:55 +0000 (14:43 -0700)
committerSoren Stoutner <soren@stoutner.com>
Fri, 9 Oct 2020 21:43:55 +0000 (14:43 -0700)
app/src/main/java/com/stoutner/privacybrowser/activities/ImportExportActivity.java
app/src/main/res/values-de/strings.xml
app/src/main/res/values-es/strings.xml
app/src/main/res/values-fr/strings.xml
app/src/main/res/values-it/strings.xml
app/src/main/res/values-pt-rBR/strings.xml
app/src/main/res/values-ru/strings.xml
app/src/main/res/values-tr/strings.xml
app/src/main/res/values/strings.xml

index 53c1109c726c7c520c56d35aa83b5bad32c6b550..d740552a74cb463f3d1f451f32177657e7497775 100644 (file)
@@ -58,6 +58,7 @@ import androidx.fragment.app.DialogFragment;
 import com.google.android.material.snackbar.Snackbar;
 import com.google.android.material.textfield.TextInputLayout;
 
+import com.stoutner.privacybrowser.BuildConfig;
 import com.stoutner.privacybrowser.R;
 import com.stoutner.privacybrowser.dialogs.StoragePermissionDialog;
 import com.stoutner.privacybrowser.helpers.DownloadLocationHelper;
@@ -191,7 +192,7 @@ public class ImportExportActivity extends AppCompatActivity implements StoragePe
         DownloadLocationHelper downloadLocationHelper = new DownloadLocationHelper();
 
         // Get the default file path.
-        String defaultFilePath = downloadLocationHelper.getDownloadLocation(this) + "/" + getString(R.string.settings_pbs);
+        String defaultFilePath = downloadLocationHelper.getDownloadLocation(this) + "/" + getString(R.string.settings) + " " + BuildConfig.VERSION_NAME + ".pbs";
 
         // Set the other default file paths.
         String defaultPasswordEncryptionFilePath = defaultFilePath + ".aes";
@@ -668,9 +669,9 @@ public class ImportExportActivity extends AppCompatActivity implements StoragePe
 
             // Set the initial export file name according to the encryption type.
             if (encryptionSpinner.getSelectedItemPosition() == NO_ENCRYPTION) {  // No encryption is selected.
-                exportBrowseIntent.putExtra(Intent.EXTRA_TITLE, getString(R.string.settings_pbs));
+                exportBrowseIntent.putExtra(Intent.EXTRA_TITLE, getString(R.string.settings) + " " + BuildConfig.VERSION_NAME + ".pbs");
             } else {  // Password encryption is selected.
-                exportBrowseIntent.putExtra(Intent.EXTRA_TITLE, getString(R.string.settings_pbs) + ".aes");
+                exportBrowseIntent.putExtra(Intent.EXTRA_TITLE, getString(R.string.settings) + " " + BuildConfig.VERSION_NAME + ".pbs.aes");
             }
 
             // Set the initial directory if the minimum API >= 26.
@@ -809,7 +810,7 @@ public class ImportExportActivity extends AppCompatActivity implements StoragePe
 
             case OPENPGP_EXPORT_RESULT_CODE:
                 // Get the temporary unencrypted export file.
-                File temporaryUnencryptedExportFile = new File(getApplicationContext().getCacheDir() + "/" + getString(R.string.settings_pbs));
+                File temporaryUnencryptedExportFile = new File(getApplicationContext().getCacheDir() + "/" + getString(R.string.settings) + " " + BuildConfig.VERSION_NAME + ".pbs");
 
                 // Delete the temporary unencrypted export file if it exists.
                 if (temporaryUnencryptedExportFile.exists()) {
@@ -833,7 +834,7 @@ public class ImportExportActivity extends AppCompatActivity implements StoragePe
 
         // Get the export and temporary unencrypted export files.
         File exportFile = new File(exportFileString);
-        File temporaryUnencryptedExportFile = new File(getApplicationContext().getCacheDir() + "/" + getString(R.string.settings_pbs));
+        File temporaryUnencryptedExportFile = new File(getApplicationContext().getCacheDir() + "/" + getString(R.string.settings) + " " + BuildConfig.VERSION_NAME + ".pbs");
 
         // Create an export status string.
         String exportStatus;
@@ -1012,7 +1013,7 @@ public class ImportExportActivity extends AppCompatActivity implements StoragePe
 
             case PASSWORD_ENCRYPTION:
                 // Use a private temporary import location.
-                File temporaryUnencryptedImportFile = new File(getApplicationContext().getCacheDir() + "/" + getString(R.string.settings_pbs));
+                File temporaryUnencryptedImportFile = new File(getApplicationContext().getCacheDir() + "/" + getString(R.string.settings) + " " + BuildConfig.VERSION_NAME + ".pbs");
 
                 try {
                     // Create an encrypted import file input stream.
index dbd8f44d64ab096773b26c94e7548e1c77011623..d1ab8d246677ea97f647e88171b17aaba2580447 100644 (file)
     <string name="file_exists_warning">Die Datei existiert bereits. Wenn Sie fortfahren, wird sie überschrieben.</string>
     <string name="openkeychain_required">Für die OpenPGP-Verschlüsselung muss OpenKeychain installiert sein.</string>
     <string name="openkeychain_import_instructions">Die unverschlüsselte Datei muss in einem weiteren Schritt importiert werden, nachdem sie entschlüsselt wurde.</string>
-    <string name="settings_pbs">Einstellungen.pbs</string>
     <string name="file_location">Datei-Ordner</string>
     <string name="browse">durchsuchen</string>
     <string name="export">exportieren</string>
index 4a8ab0a0770f4b0a59dd67cd69eb7996baae01b7..877d49c32e31359b95eb2db5a966a58a1aae91b8 100644 (file)
     <string name="file_exists_warning">El archivo ya existe. Si procede, se sobrescribirá.</string>
     <string name="openkeychain_required">El cifrado OpenPGP requiere que esté instalado OpenKeychain.</string>
     <string name="openkeychain_import_instructions">El archivo sin cifrar tendrá que ser importado en un paso separado después de ser descifrado.</string>
-    <string name="settings_pbs">Configuración.pbs</string>
     <string name="file_location">Ubicación del archivo</string>
     <string name="browse">Navegar</string>
     <string name="export">Exportar</string>
index 0a424c3e10993f8dabfbb8e02e6f608d9f67ecde..60b36f26e8b890c3329a398a3a4792bf32a9696a 100644 (file)
     <string name="file_exists_warning">Le fichier existe déjà. Si vous continuez, il sera écrasé.</string>
     <string name="openkeychain_required">Le chiffrement OpenPGP nécessite l\'installation d\'OpenKeychain.</string>
     <string name="openkeychain_import_instructions">Le fichier non-chiffré devra être importé dans un deuxième temps, après son déchiffrement.</string>
-    <string name="settings_pbs">Settings.pbs</string>
     <string name="file_location">Emplacement du fichier</string>
     <string name="browse">Parcourir</string>
     <string name="export">Exporter</string>
index 3c040eb3abbdd0d11d0eac757b55c76e4ac318a5..7d279c9ad791981426631213a3989be69047a480 100644 (file)
     <string name="file_exists_warning">Il file è già esistente. Se si decide di procedere sarà sovrascritto.</string>
     <string name="openkeychain_required">La cifratura OpenPGP richiede l\'installazione di OpenKeychain.</string>
     <string name="openkeychain_import_instructions">Il file non cifrato deve essere importato in un secondo momento dopo che è stato decriptato.</string>
-    <string name="settings_pbs">Impostazioni.pbs</string>
     <string name="file_location">Posizione del File</string>
     <string name="browse">Sfoglia</string>
     <string name="export">Esporta</string>
index bea892981e67739d4949100318b706101917e695..c96e4f8376d6cea25f2a08ea60832a6d74cf664f 100644 (file)
     <string name="file_exists_warning">O arquivo já existe. Se você continuar, ele será sobrescrito.</string>
     <string name="openkeychain_required">A criptografia OpenPGP requer que o OpenKeychain seja instalado.</string>
     <string name="openkeychain_import_instructions">O arquivo não criptografado terá que ser importado em uma etapa separada após ser descriptografado.</string>
-    <string name="settings_pbs">Settings.pbs</string>
     <string name="file_location">Localização do Arquivo</string>
     <string name="browse">Navegar</string>
     <string name="export">Exportar</string>
index 184a8d0cc005b96aeb77d89486b09681fe2fcfc5..0af2e1f768d795414b21fc388841a11a05cbcd69 100644 (file)
     <string name="file_exists_warning">Файл уже существует. Если вы продолжите, он будет перезаписан.</string>
     <string name="openkeychain_required">Для использования шифрования OpenPGP необходимо приложение OpenKeychain.</string>
     <string name="openkeychain_import_instructions">Незашифрованный файл должен быть импортирован на отдельном шаге после его дешифрования.</string>
-    <string name="settings_pbs">Настройки.pbs</string>
     <string name="file_location">Расположение файла</string>
     <string name="browse">Обзор</string>
     <string name="export">Экспорт</string>
index b6570695734397110ebfd405ea0dcf74d59a4c81..6780b43ebf4815134c4b37389fdf3b8e8d52022d 100644 (file)
     <string name="kitkat_password_encryption_message">Android KitKat sürümünde parola şifrelemesi çalışmaz.</string>
     <string name="openkeychain_required">OpenPGP şifrelemesinin çalışması için OpenKeychain yüklü olmalıdır.</string>
     <string name="openkeychain_import_instructions">Şifresi çözüldükten sonra, şifrelenmemiş dosya ayrı bir adımda içeri aktarılmak zorundadır.</string>
-    <string name="settings_pbs">Ayarlar.pbs</string>
     <string name="file_location">Dosya Konumu</string>
     <string name="browse">Gözat</string>
     <string name="export">Dışarı aktar</string>
index 517fb2680b37fd2e39c9fd47559cf65c3b88b221..fb87dbc2482de0d8b8081315330e2ed338ef74c4 100644 (file)
     <string name="file_exists_warning">The file already exists.  If you proceed it will be overwritten.</string>
     <string name="openkeychain_required">OpenPGP encryption requires that OpenKeychain be installed.</string>
     <string name="openkeychain_import_instructions">The unencrypted file will have to be imported in a separate step after it is decrypted.</string>
-    <string name="settings_pbs">Settings.pbs</string>
     <string name="file_location">File Location</string>
     <string name="browse">Browse</string>
     <string name="export">Export</string>