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()) {
try {
_vault.backup();
Toast.makeText(getActivity(), R.string.backup_successful, Toast.LENGTH_LONG).show();
} catch (VaultManagerException e) {
e.printStackTrace();
Dialogs.showErrorDialog(getContext(), R.string.backup_error, e);