diff options
Diffstat (limited to 'app/src/main/res/xml')
7 files changed, 60 insertions, 81 deletions
diff --git a/app/src/main/res/xml/about_preferences.xml b/app/src/main/res/xml/about_preferences.xml index 6561eec3..a73f9aaa 100644 --- a/app/src/main/res/xml/about_preferences.xml +++ b/app/src/main/res/xml/about_preferences.xml @@ -46,11 +46,6 @@ app:summary="@string/settings_share_summary" /> <Preference - app:title="@string/settings_crash_reports_title" - app:summary="@string/settings_crash_reports_summary" - app:fragment="ml.docilealligator.infinityforreddit.Settings.CrashReportsFragment" /> - - <Preference android:key="version" app:title="@string/settings_version_title" app:summary="@string/settings_version_summary" /> diff --git a/app/src/main/res/xml/advanced_preferences.xml b/app/src/main/res/xml/advanced_preferences.xml index 432623d3..0d6c02e5 100644 --- a/app/src/main/res/xml/advanced_preferences.xml +++ b/app/src/main/res/xml/advanced_preferences.xml @@ -23,6 +23,14 @@ app:title="@string/settings_delete_all_themes_in_database_title" /> <Preference + app:key="delete_front_page_scrolled_positions_in_database" + app:title="@string/settings_delete_front_page_scrolled_positions_in_database_title" /> + + <Preference + app:key="delete_all_legacy_settings" + app:title="@string/settings_delete_all_legacy_settings_title" /> + + <Preference app:key="reset_all_settings" app:title="@string/settings_reset_all_settings_title" /> diff --git a/app/src/main/res/xml/customize_main_page_tabs_preferences.xml b/app/src/main/res/xml/customize_main_page_tabs_preferences.xml deleted file mode 100644 index 37e17d0c..00000000 --- a/app/src/main/res/xml/customize_main_page_tabs_preferences.xml +++ /dev/null @@ -1,76 +0,0 @@ -<?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 - android:icon="@drawable/ic_info_preference_24dp" - app:summary="@string/settings_tab_info" - app:enabled="false" /> - - <PreferenceCategory - app:title="@string/settings_tab_1_summary" /> - - <EditTextPreference - app:defaultValue="@string/home" - app:key="main_page_tab_1_title" - app:title="@string/settings_tab_title" - app:useSimpleSummaryProvider="true" /> - - <ListPreference - app:defaultValue="0" - android:entries="@array/settings_tab_post_type" - app:entryValues="@array/settings_tab_post_type_values" - app:key="main_page_tab_1_post_type" - app:title="@string/settings_tab_post_type" - app:useSimpleSummaryProvider="true" /> - - <EditTextPreference - app:key="main_page_tab_1_name" - app:isPreferenceVisible="false" - app:useSimpleSummaryProvider="true" /> - - <PreferenceCategory - app:title="@string/settings_tab_2_summary" /> - - <EditTextPreference - app:defaultValue="@string/popular" - app:key="main_page_tab_2_title" - app:title="@string/settings_tab_title" - app:useSimpleSummaryProvider="true" /> - - <ListPreference - app:defaultValue="1" - android:entries="@array/settings_tab_post_type" - app:entryValues="@array/settings_tab_post_type_values" - app:key="main_page_tab_2_post_type" - app:title="@string/settings_tab_post_type" - app:useSimpleSummaryProvider="true" /> - - <EditTextPreference - app:key="main_page_tab_2_name" - app:isPreferenceVisible="false" - app:useSimpleSummaryProvider="true" /> - - <PreferenceCategory - app:title="@string/settings_tab_3_summary" /> - - <EditTextPreference - app:defaultValue="@string/all" - app:key="main_page_tab_3_title" - app:title="@string/settings_tab_title" - app:useSimpleSummaryProvider="true" /> - - <ListPreference - app:defaultValue="2" - android:entries="@array/settings_tab_post_type" - app:entryValues="@array/settings_tab_post_type_values" - app:key="main_page_tab_3_post_type" - app:title="@string/settings_tab_post_type" - app:useSimpleSummaryProvider="true" /> - - <EditTextPreference - app:key="main_page_tab_3_name" - app:isPreferenceVisible="false" - app:useSimpleSummaryProvider="true" /> - -</PreferenceScreen>
\ No newline at end of file diff --git a/app/src/main/res/xml/download_location_preferences.xml b/app/src/main/res/xml/download_location_preferences.xml new file mode 100644 index 00000000..7954cb87 --- /dev/null +++ b/app/src/main/res/xml/download_location_preferences.xml @@ -0,0 +1,13 @@ +<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"> + <Preference + app:key="image_download_location" + app:title="@string/settings_image_download_location_title" /> + + <Preference + app:key="gif_download_location" + app:title="@string/settings_gif_download_location_title" /> + + <Preference + app:key="video_download_location" + app:title="@string/settings_video_download_location_title" /> +</PreferenceScreen>
\ No newline at end of file diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml index 2e5c71e3..0fcd1977 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -62,6 +62,10 @@ app:key="show_thumbnail_on_the_left_in_compact_layout" app:title="@string/settings_show_thumbnail_on_the_left_in_compact_layout" /> + <Preference + app:title="@string/settings_number_of_columns_in_post_feed_title" + app:fragment="ml.docilealligator.infinityforreddit.Settings.NumberOfColumnsInPostFeedPreferenceFragment" /> + <PreferenceCategory app:title="@string/settings_category_comment_title" /> diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml index af3f3898..ce6ff184 100644 --- a/app/src/main/res/xml/main_preferences.xml +++ b/app/src/main/res/xml/main_preferences.xml @@ -36,6 +36,17 @@ app:title="@string/settings_lazy_mode_interval_title" app:useSimpleSummaryProvider="true" /> + <Preference + app:title="@string/settings_download_location_title" + android:icon="@drawable/ic_download_24dp" + app:fragment="ml.docilealligator.infinityforreddit.Settings.DownloadLocationPreferenceFragment" /> + + <SwitchPreference + app:defaultValue="false" + app:key="save_front_page_scrolled_position" + app:title="@string/settings_save_front_page_scrolled_position_title" + app:summary="@string/settings_save_front_page_scrolled_position_summary" /> + <SwitchPreference app:defaultValue="false" app:icon="@drawable/ic_link" diff --git a/app/src/main/res/xml/number_of_columns_in_post_feed_preferences.xml b/app/src/main/res/xml/number_of_columns_in_post_feed_preferences.xml new file mode 100644 index 00000000..cbaea03e --- /dev/null +++ b/app/src/main/res/xml/number_of_columns_in_post_feed_preferences.xml @@ -0,0 +1,24 @@ +<?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 + android:icon="@drawable/ic_info_preference_24dp" + app:summary="@string/settings_tab_info" + app:enabled="false" /> + + <ListPreference + app:defaultValue="1" + app:entries="@array/settings_number_of_columns_in_post_feed" + app:entryValues="@array/settings_number_of_columns_in_post_feed" + app:key="number_of_columns_in_post_feed_portrait" + app:title="@string/settings_number_of_columns_in_post_feed_portrait_title" + app:useSimpleSummaryProvider="true" /> + + <ListPreference + app:defaultValue="2" + app:entries="@array/settings_number_of_columns_in_post_feed" + app:entryValues="@array/settings_number_of_columns_in_post_feed" + app:key="number_of_columns_in_post_feed_landscape" + app:title="@string/settings_number_of_columns_in_post_feed_landscape_title" + app:useSimpleSummaryProvider="true" /> +</PreferenceScreen>
\ No newline at end of file |