Add settings to select appending

This commit is contained in:
RichyHBM 2018-02-01 13:21:04 +00:00
parent 8869799ffb
commit 578f05a6b1
4 changed files with 15 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -24,6 +24,7 @@
<string name="settings_key_thumbnail_size" translatable="false">pref_thumbnail_size</string>
<string name="settings_key_split_group_size" translatable="false">pref_split_group_size</string>
<string name="settings_key_backup_append_date_time" translatable="false">pref_backup_append_date_time</string>
<string name="settings_key_backup_ask" translatable="false">pref_backup_ask</string>
<string name="settings_key_backup_directory" translatable="false">pref_backup_directory</string>
<string name="settings_key_backup_password" translatable="false">pref_backup_password</string> <!-- Deprecated -->

View file

@ -23,6 +23,7 @@
<string name="settings_title_thumbnail_size_ask">Thumbnail size</string>
<string name="settings_title_split_group_size">Split Token with space</string>
<string name="settings_title_backup_append_date">Append date to filename</string>
<string name="settings_title_backup_ask">Ask for filename</string>
<string name="settings_title_backup_directory">Backup directory</string>
<string name="settings_title_backup_password">Backup password</string>
@ -44,6 +45,9 @@
<string name="settings_desc_label_scroll">Scroll overlong labels instead of truncating them</string>
<string name="settings_desc_backup_append_date">Append the current date and time to the suggested
backup filename</string>
<string name="settings_desc_backup_ask">Ask for the filename every time a backup is created or
restored</string>
<string name="settings_desc_backup_directory">Directory for the backups (filenames will depend

View file

@ -96,6 +96,12 @@
<PreferenceCategory
android:title="@string/settings_category_title_backup">
<CheckBoxPreference
android:key="@string/settings_key_backup_append_date_time"
android:title="@string/settings_title_backup_append_date"
android:summary="@string/settings_desc_backup_append_date"
android:defaultValue="false" />
<CheckBoxPreference
android:key="@string/settings_key_backup_ask"
android:title="@string/settings_title_backup_ask"