mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-25 08:16:07 +00:00
Show toast message if backup was created successfully
This commit is contained in:
parent
0af48f8bfa
commit
33ff7da7af
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue