Reduced Font size, fixed bugs that were created when moving the setting
This commit is contained in:
parent
27f509c8e0
commit
33f5ed5b14
|
@ -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
|
// Error
|
||||||
//////////////////////////////////////////////////////////////////////////*/
|
//////////////////////////////////////////////////////////////////////////*/
|
||||||
|
|
|
@ -14,9 +14,11 @@
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentStart="true"
|
android:layout_alignParentStart="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
|
android:paddingBottom="6dp"
|
||||||
android:paddingLeft="3dp"
|
android:paddingLeft="3dp"
|
||||||
android:paddingStart="3dp"
|
android:paddingStart="3dp"
|
||||||
|
android:paddingTop="6dp"
|
||||||
android:textAppearance="?android:attr/textAppearanceListItem"
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
||||||
android:textSize="24sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
</android.support.v7.widget.CardView>
|
</android.support.v7.widget.CardView>
|
Loading…
Reference in New Issue