From 578f05a6b17d6a812eec760dbe9f331bd8eb6637 Mon Sep 17 00:00:00 2001 From: RichyHBM Date: Thu, 1 Feb 2018 13:21:04 +0000 Subject: [PATCH] Add settings to select appending --- .../org/shadowice/flocke/andotp/Utilities/Settings.java | 4 ++++ app/src/main/res/values/settings.xml | 1 + app/src/main/res/values/strings_settings.xml | 4 ++++ app/src/main/res/xml/preferences.xml | 6 ++++++ 4 files changed, 15 insertions(+) diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java b/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java index 66e74adf..c7f69f43 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java @@ -462,4 +462,8 @@ public class Settings { public void setLastUsedDialogShown(boolean value) { setBoolean(R.string.settings_key_last_used_dialog_shown, value); } + + public boolean getIsAppendingDateTimeToBackups() { + return getBoolean(R.string.settings_key_backup_append_date_time, false); + } } diff --git a/app/src/main/res/values/settings.xml b/app/src/main/res/values/settings.xml index 11db6c59..1a4af210 100644 --- a/app/src/main/res/values/settings.xml +++ b/app/src/main/res/values/settings.xml @@ -24,6 +24,7 @@ pref_thumbnail_size pref_split_group_size + pref_backup_append_date_time pref_backup_ask pref_backup_directory pref_backup_password diff --git a/app/src/main/res/values/strings_settings.xml b/app/src/main/res/values/strings_settings.xml index e641dcd2..f5a8f77b 100644 --- a/app/src/main/res/values/strings_settings.xml +++ b/app/src/main/res/values/strings_settings.xml @@ -23,6 +23,7 @@ Thumbnail size Split Token with space + Append date to filename Ask for filename Backup directory Backup password @@ -44,6 +45,9 @@ Scroll overlong labels instead of truncating them + + Append the current date and time to the suggested + backup filename Ask for the filename every time a backup is created or restored Directory for the backups (filenames will depend diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 148aa001..e59feb08 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -96,6 +96,12 @@ + +