Add ability to disable backup reminder

This commit is contained in:
Michael Schättgen 2023-02-05 18:31:31 +01:00
parent fd42c5c893
commit 61d41a26fa
40 changed files with 96 additions and 38 deletions

View file

@ -278,6 +278,14 @@ public class Preferences {
setBuiltInBackupResult(null);
}
public boolean isBackupReminderEnabled() {
return _prefs.getBoolean("pref_backup_reminder", true);
}
public void setIsBackupReminderEnabled(boolean enabled) {
_prefs.edit().putBoolean("pref_backup_reminder", enabled).apply();
}
public Uri getBackupsLocation() {
String str = _prefs.getString("pref_backups_location", null);
if (str != null) {