From a84bd1a97e192d849a1978f121b0263c9938cf0a Mon Sep 17 00:00:00 2001 From: Somethingweirdhere Date: Sat, 16 Jun 2018 11:51:43 +0200 Subject: [PATCH] Fixed 1. Put the tab settings into Aperence settings --- .../settings/ContentSettingsFragment.java | 26 ------------------- app/src/main/res/xml/appearance_settings.xml | 7 +++++ app/src/main/res/xml/content_settings.xml | 6 ----- 3 files changed, 7 insertions(+), 32 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java index 81fb45ec8..1ec8ecbbf 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java +++ b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java @@ -303,32 +303,6 @@ public class ContentSettingsFragment extends BasePreferenceFragment { } } - /*////////////////////////////////////////////////////////////////////////// - // Utils - //////////////////////////////////////////////////////////////////////////*/ - private String getMainPagePrefSummery(final String mainPrefOldValue, final ListPreference mainPageContentPref) { - if(mainPrefOldValue.equals(getString(R.string.channel_page_key))) { - return defaultPreferences.getString(getString(R.string.main_page_selected_channel_name), "error"); - } else { - return mainPageContentPref.getSummary().toString(); - } - } - - private int getMainPageSummeryByKey(final String key) { - if(key.equals(getString(R.string.blank_page_key))) { - return R.string.blank_page_summary; - } else if(key.equals(getString(R.string.kiosk_page_key))) { - return R.string.kiosk_page_summary; - } else if(key.equals(getString(R.string.feed_page_key))) { - return R.string.feed_page_summary; - } else if(key.equals(getString(R.string.subscription_page_key))) { - return R.string.subscription_page_summary; - } else if(key.equals(getString(R.string.channel_page_key))) { - return R.string.channel_page_summary; - } - return R.string.blank_page_summary; - } - /*////////////////////////////////////////////////////////////////////////// // Error //////////////////////////////////////////////////////////////////////////*/ diff --git a/app/src/main/res/xml/appearance_settings.xml b/app/src/main/res/xml/appearance_settings.xml index 239f5f3b3..4e638e371 100644 --- a/app/src/main/res/xml/appearance_settings.xml +++ b/app/src/main/res/xml/appearance_settings.xml @@ -26,4 +26,11 @@ android:key="@string/caption_settings_key" android:title="@string/caption_setting_title" android:summary="@string/caption_setting_description"/> + + + diff --git a/app/src/main/res/xml/content_settings.xml b/app/src/main/res/xml/content_settings.xml index 6ae18d5eb..fcf42b130 100644 --- a/app/src/main/res/xml/content_settings.xml +++ b/app/src/main/res/xml/content_settings.xml @@ -43,12 +43,6 @@ android:title="@string/download_thumbnail_title" android:summary="@string/download_thumbnail_summary"/> - -