diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-03-29 08:28:50 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-03-29 08:28:50 +0000 |
commit | 84d4679aa9dbed4bca22f23d39cb397727a58722 (patch) | |
tree | f53cf8457cf88442eddce3f338f083ca5ea1d033 /app/src/main/res | |
parent | ca599fede57e07a33eb90b2354bcac526fb0968b (diff) | |
download | infinity-for-reddit-84d4679aa9dbed4bca22f23d39cb397727a58722.tar infinity-for-reddit-84d4679aa9dbed4bca22f23d39cb397727a58722.tar.gz infinity-for-reddit-84d4679aa9dbed4bca22f23d39cb397727a58722.tar.bz2 infinity-for-reddit-84d4679aa9dbed4bca22f23d39cb397727a58722.tar.lz infinity-for-reddit-84d4679aa9dbed4bca22f23d39cb397727a58722.tar.xz infinity-for-reddit-84d4679aa9dbed4bca22f23d39cb397727a58722.tar.zst infinity-for-reddit-84d4679aa9dbed4bca22f23d39cb397727a58722.zip |
Finished adding advanced preferences.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable-night/ic_info_preference_24dp.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/drawable/ic_info_preference_24dp.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 14 | ||||
-rw-r--r-- | app/src/main/res/xml/advanced_preferences.xml | 13 | ||||
-rw-r--r-- | app/src/main/res/xml/theme_preferences.xml | 3 |
5 files changed, 44 insertions, 4 deletions
diff --git a/app/src/main/res/drawable-night/ic_info_preference_24dp.xml b/app/src/main/res/drawable-night/ic_info_preference_24dp.xml new file mode 100644 index 00000000..10088cff --- /dev/null +++ b/app/src/main/res/drawable-night/ic_info_preference_24dp.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + <path + android:pathData="M11,7h2v2h-2zM11,11h2v6h-2zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8z" + android:fillColor="#4DFFFFFF"/> +</vector> diff --git a/app/src/main/res/drawable/ic_info_preference_24dp.xml b/app/src/main/res/drawable/ic_info_preference_24dp.xml new file mode 100644 index 00000000..88855dce --- /dev/null +++ b/app/src/main/res/drawable/ic_info_preference_24dp.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + <path + android:pathData="M11,7h2v2h-2zM11,11h2v6h-2zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8z" + android:fillColor="#42000000"/> +</vector> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a05fb242..c976932b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -365,12 +365,15 @@ <string name="settings_customize_dark_theme_title">Dark Theme</string> <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_custom_theme_cannot_apply_to_settings_page_summary">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="settings_delete_all_sort_type_data_in_database_title">Delete All Sort Types in Database</string> + <string name="settings_delete_all_post_layout_data_in_database_title">Delete All Post Layouts in Database</string> + <string name="settings_delete_all_themes_in_database_title">Delete All Themes in Database</string> + <string name="settings_reset_all_settings_title">Reset All Settings</string> + <string name="settings_advanced_settings_summary">Clean the database and shared preferences</string> <string name="no_link_available">Cannot get the link</string> @@ -645,5 +648,10 @@ <string name="delete_all_subreddits_success">Delete all subreddits successful</string> <string name="delete_all_users_success">Delete all users successful</string> + <string name="delete_all_sort_types_success">Delete all sort types successful</string> + <string name="delete_all_post_layouts_success">Delete all post layouts successful</string> + <string name="delete_all_themes_success">Delete all themes successful</string> + <string name="reset_all_settings_success">Reset all settings successful</string> + </resources> diff --git a/app/src/main/res/xml/advanced_preferences.xml b/app/src/main/res/xml/advanced_preferences.xml index f16e572d..e475af51 100644 --- a/app/src/main/res/xml/advanced_preferences.xml +++ b/app/src/main/res/xml/advanced_preferences.xml @@ -18,4 +18,17 @@ app:key="delete_all_post_layout_data_in_database" app:title="@string/settings_delete_all_post_layout_data_in_database_title" /> + <Preference + app:key="delete_all_themes_in_database" + app:title="@string/settings_delete_all_themes_in_database_title" /> + + <Preference + app:key="reset_all_settings" + app:title="@string/settings_reset_all_settings_title" /> + + <Preference + android:icon="@drawable/ic_info_preference_24dp" + app:summary="@string/settings_custom_theme_cannot_apply_to_settings_page_summary" + app:enabled="false" /> + </PreferenceScreen>
\ No newline at end of file diff --git a/app/src/main/res/xml/theme_preferences.xml b/app/src/main/res/xml/theme_preferences.xml index f40ef592..a520fc49 100644 --- a/app/src/main/res/xml/theme_preferences.xml +++ b/app/src/main/res/xml/theme_preferences.xml @@ -42,7 +42,8 @@ app:title="@string/settings_manage_themes_title" /> <Preference - app:summary="@string/settings_custom_theme_cannot_apply_to_settings_page_title" + android:icon="@drawable/ic_info_preference_24dp" + app:summary="@string/settings_custom_theme_cannot_apply_to_settings_page_summary" app:enabled="false" /> </PreferenceScreen>
\ No newline at end of file |