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 5d823a431..0ca78b34a 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java +++ b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java @@ -282,40 +282,6 @@ public class ContentSettingsFragment extends BasePreferenceFragment { } } - @Override - public void onResume() { - super.onResume(); - - final String mainPageContentKey = getString(R.string.main_page_content_key); - final Preference mainPagePref = findPreference(getString(R.string.main_page_content_key)); - final String bpk = getString(R.string.blank_page_key); - if(defaultPreferences.getString(mainPageContentKey, bpk) - .equals(getString(R.string.channel_page_key))) { - mainPagePref.setSummary(defaultPreferences.getString(getString(R.string.main_page_selected_channel_name), "error")); - } else if(defaultPreferences.getString(mainPageContentKey, bpk) - .equals(getString(R.string.kiosk_page_key))) { - try { - StreamingService service = NewPipe.getService( - defaultPreferences.getInt( - getString(R.string.main_page_selected_service), 0)); - - String kioskName = KioskTranslator.getTranslatedKioskName( - defaultPreferences.getString( - getString(R.string.main_page_selectd_kiosk_id), "Trending"), - getContext()); - - String summary = - String.format(getString(R.string.service_kiosk_string), - service.getServiceInfo().getName(), - kioskName); - - mainPagePref.setSummary(summary); - } catch (Exception e) { - onError(e); - } - } - } - /*////////////////////////////////////////////////////////////////////////// // Error //////////////////////////////////////////////////////////////////////////*/ diff --git a/app/src/main/res/layout/dialog_contentsettingtab.xml b/app/src/main/res/layout/dialog_contentsettingtab.xml index 6fd6e2519..8b2121759 100644 --- a/app/src/main/res/layout/dialog_contentsettingtab.xml +++ b/app/src/main/res/layout/dialog_contentsettingtab.xml @@ -14,9 +14,11 @@ android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_centerVertical="true" + android:paddingBottom="6dp" android:paddingLeft="3dp" android:paddingStart="3dp" + android:paddingTop="6dp" android:textAppearance="?android:attr/textAppearanceListItem" - android:textSize="24sp" /> + android:textSize="16sp" /> \ No newline at end of file