mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Show a backup reminder if auto backups are not enabled
If the user doesn't have auto backups enabled, the reminder will pop up up every time a significant change is made to the vault. Users can get rid of the reminder by: - Creating an export - Enabling automatic backups (either ours or Android backups will do)
This commit is contained in:
parent
cf9fbf081c
commit
339a31b0f3
7 changed files with 66 additions and 20 deletions
|
@ -308,6 +308,16 @@ public class Preferences {
|
|||
return _prefs.getString("pref_backups_error", null);
|
||||
}
|
||||
|
||||
public void setIsBackupReminderNeeded(boolean needed) {
|
||||
if (isBackupsReminderNeeded() != needed) {
|
||||
_prefs.edit().putBoolean("pref_backups_reminder_needed", needed).apply();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isBackupsReminderNeeded() {
|
||||
return _prefs.getBoolean("pref_backups_reminder_needed", false);
|
||||
}
|
||||
|
||||
public boolean isPinKeyboardEnabled() {
|
||||
return _prefs.getBoolean("pref_pin_keyboard", false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue