diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-03-28 14:43:47 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-03-28 14:43:47 +0000 |
commit | a5a5e6dac24ad08cf57abfcf16551832265fa425 (patch) | |
tree | 68c6709901a54c92947599c1288fc3a8c0a05502 /app/src/main/res | |
parent | b1d5be17cdfc2c396cf4de40167233f25a1dcda5 (diff) | |
download | infinity-for-reddit-a5a5e6dac24ad08cf57abfcf16551832265fa425.tar infinity-for-reddit-a5a5e6dac24ad08cf57abfcf16551832265fa425.tar.gz infinity-for-reddit-a5a5e6dac24ad08cf57abfcf16551832265fa425.tar.bz2 infinity-for-reddit-a5a5e6dac24ad08cf57abfcf16551832265fa425.tar.lz infinity-for-reddit-a5a5e6dac24ad08cf57abfcf16551832265fa425.tar.xz infinity-for-reddit-a5a5e6dac24ad08cf57abfcf16551832265fa425.tar.zst infinity-for-reddit-a5a5e6dac24ad08cf57abfcf16551832265fa425.zip |
Add some advanced preferences which do nothing right now.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/values/strings.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/xml/advanced_preferences.xml | 21 | ||||
-rw-r--r-- | app/src/main/res/xml/main_preferences.xml | 4 |
3 files changed, 33 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a28dfd34..45de4c40 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -366,6 +366,11 @@ <string name="settings_customize_amoled_theme_title">Amoled Theme</string> <string name="settings_manage_themes_title">Manage Themes</string> <string name="settings_custom_theme_cannot_apply_to_settings_page_title">Custom themes cannot be applied to settings page (except toolbar, status bar and navigation bar).</string> + <string name="settings_advanced_master_title">Advanced</string> + <string name="settings_delete_all_subreddits_data_in_database_title">Delete All Subreddits in Database</string> + <string name="settings_delete_all_users_data_in_database_title">Delete All Users in Database</string> + <string name="settings_delete_all_sort_type_data_in_database_title">Delete All Sort Type in Database</string> + <string name="settings_delete_all_post_layout_data_in_database_title">Delete All Post Layout Data in Database</string> <string name="no_link_available">Cannot get the link</string> @@ -638,4 +643,7 @@ <string name="color_picker">Color Picker</string> <string name="invalid_color">Invalid Color</string> + <!-- TODO: Remove or change this placeholder text --> + <string name="hello_blank_fragment">Hello blank fragment</string> + </resources> diff --git a/app/src/main/res/xml/advanced_preferences.xml b/app/src/main/res/xml/advanced_preferences.xml new file mode 100644 index 00000000..f16e572d --- /dev/null +++ b/app/src/main/res/xml/advanced_preferences.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + + <Preference + app:key="delete_all_subreddits_data_in_database" + app:title="@string/settings_delete_all_subreddits_data_in_database_title" /> + + <Preference + app:key="delete_all_users_data_in_database" + app:title="@string/settings_delete_all_users_data_in_database_title" /> + + <Preference + app:key="delete_all_sort_type_data_in_database" + app:title="@string/settings_delete_all_sort_type_data_in_database_title" /> + + <Preference + app:key="delete_all_post_layout_data_in_database" + app:title="@string/settings_delete_all_post_layout_data_in_database_title" /> + +</PreferenceScreen>
\ No newline at end of file diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml index 3afc2f8b..8622a87f 100644 --- a/app/src/main/res/xml/main_preferences.xml +++ b/app/src/main/res/xml/main_preferences.xml @@ -67,6 +67,10 @@ app:title="@string/settings_blur_spoiler_title" /> <Preference + app:title="@string/settings_advanced_master_title" + app:fragment="ml.docilealligator.infinityforreddit.Settings.AdvancedPreferenceFragment" /> + + <Preference app:title="@string/settings_about_master_title" app:fragment="ml.docilealligator.infinityforreddit.Settings.AboutPreferenceFragment" /> |