mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Add warning banner after plaintext export
This commit is contained in:
parent
b875baacef
commit
045b8280bf
5 changed files with 93 additions and 0 deletions
|
@ -316,6 +316,29 @@ public class Preferences {
|
|||
return _prefs.getBoolean("pref_backups_reminder_needed", false);
|
||||
}
|
||||
|
||||
public void setIsPlaintextBackupWarningNeeded(boolean needed) {
|
||||
if (isPlaintextBackupWarningNeeded() != needed) {
|
||||
_prefs.edit().putBoolean("pref_plaintext_backup_warning_needed", needed).apply();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isPlaintextBackupWarningNeeded() {
|
||||
if (canShowPlaintextBackupWarning()) {
|
||||
return _prefs.getBoolean("pref_plaintext_backup_warning_needed", false);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setCanShowPlaintextBackupWarning(boolean canShow) {
|
||||
if (canShowPlaintextBackupWarning() != canShow) {
|
||||
_prefs.edit().putBoolean("pref_can_show_plaintext_backup_warning", canShow).apply();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean canShowPlaintextBackupWarning() {
|
||||
return _prefs.getBoolean("pref_can_show_plaintext_backup_warning", true);
|
||||
}
|
||||
|
||||
public boolean isPinKeyboardEnabled() {
|
||||
return _prefs.getBoolean("pref_pin_keyboard", false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue