diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-03-06 03:33:35 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-03-06 03:33:35 +0000 |
commit | 65e654a23c9a0ee791ca68ea58f7060e5ec67fc5 (patch) | |
tree | 8193180dc383f2c21fb936dd8b2d7148458c9a1c /app/src/main/res | |
parent | 2ef72bc79833f1b9224f9c4b8a1f2208f919da18 (diff) | |
download | infinity-for-reddit-65e654a23c9a0ee791ca68ea58f7060e5ec67fc5.tar infinity-for-reddit-65e654a23c9a0ee791ca68ea58f7060e5ec67fc5.tar.gz infinity-for-reddit-65e654a23c9a0ee791ca68ea58f7060e5ec67fc5.tar.bz2 infinity-for-reddit-65e654a23c9a0ee791ca68ea58f7060e5ec67fc5.tar.lz infinity-for-reddit-65e654a23c9a0ee791ca68ea58f7060e5ec67fc5.tar.xz infinity-for-reddit-65e654a23c9a0ee791ca68ea58f7060e5ec67fc5.tar.zst infinity-for-reddit-65e654a23c9a0ee791ca68ea58f7060e5ec67fc5.zip |
Backup settings.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/values/strings.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/xml/advanced_preferences.xml | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 93adbf0b..795a6a0a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -541,6 +541,8 @@ <string name="settings_hide_the_number_of_votes">Hide the Number of Votes</string> <string name="settings_hide_the_number_of_comments">Hide the Number of Comments</string> <string name="settings_show_avatar_on_the_right_in_the_navigation_drawer">Show Avatar on the Left in the Navigation Drawer</string> + <string name="settings_backup_settings_title">Backup Settings</string> + <string name="settings_restore_settings_title">Restore Settings</string> <string name="no_link_available">Cannot get the link</string> @@ -1037,4 +1039,8 @@ <string name="anonymous_front_page_no_subscriptions">Start by joining a subreddit!</string> + <string name="backup_settings_success">Successfully exported settings to the destination directory</string> + <string name="create_zip_in_destination_directory_failed">Could not create backup zip in the destination directory</string> + <string name="backup_some_settings_failed">Could not backup some settings but others were successfully exported to the destination directory</string> + </resources> diff --git a/app/src/main/res/xml/advanced_preferences.xml b/app/src/main/res/xml/advanced_preferences.xml index 6992530d..68b74260 100644 --- a/app/src/main/res/xml/advanced_preferences.xml +++ b/app/src/main/res/xml/advanced_preferences.xml @@ -39,6 +39,14 @@ app:title="@string/settings_reset_all_settings_title" /> <Preference + app:key="backup_settings" + app:title="@string/settings_backup_settings_title" /> + + <Preference + app:key="restore_settings" + app:title="@string/settings_restore_settings_title" /> + + <Preference android:icon="@drawable/ic_info_preference_24dp" app:summary="@string/settings_advanced_settings_summary" app:enabled="false" /> |