Show toast message if backup was created successfully

This commit is contained in:
orangenbaumblatt 2020-10-04 01:11:21 +02:00
parent 0af48f8bfa
commit 33ff7da7af
2 changed files with 2 additions and 0 deletions

View file

@ -438,6 +438,7 @@ public class PreferencesFragment extends PreferenceFragmentCompat {
if (_prefs.isBackupsEnabled()) { if (_prefs.isBackupsEnabled()) {
try { try {
_vault.backup(); _vault.backup();
Toast.makeText(getActivity(), R.string.backup_successful, Toast.LENGTH_LONG).show();
} catch (VaultManagerException e) { } catch (VaultManagerException e) {
e.printStackTrace(); e.printStackTrace();
Dialogs.showErrorDialog(getContext(), R.string.backup_error, e); Dialogs.showErrorDialog(getContext(), R.string.backup_error, e);

View file

@ -158,6 +158,7 @@
<string name="disable_encryption_description">Are you sure you want to disable encryption? This will cause the vault to be stored in plain text.</string> <string name="disable_encryption_description">Are you sure you want to disable encryption? This will cause the vault to be stored in plain text.</string>
<string name="enable_encryption_error">An error occurred while enabling encryption</string> <string name="enable_encryption_error">An error occurred while enabling encryption</string>
<string name="disable_encryption_error">An error occurred while disabling encryption</string> <string name="disable_encryption_error">An error occurred while disabling encryption</string>
<string name="backup_successful">The backup was created successfully</string>
<string name="backup_error">An error occurred while trying to create a backup</string> <string name="backup_error">An error occurred while trying to create a backup</string>
<string name="permission_denied">Permission denied</string> <string name="permission_denied">Permission denied</string>
<string name="andotp_new_format">New format (v0.6.3 or newer) </string> <string name="andotp_new_format">New format (v0.6.3 or newer) </string>