Removed API checks
This commit is contained in:
parent
5fc6877a87
commit
417dcdacf0
|
@ -33,19 +33,6 @@ public class UserInterfacePreferencesFragment extends PreferenceFragmentCompat {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupInterfaceScreen() {
|
private void setupInterfaceScreen() {
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {
|
|
||||||
// disable expanded notification option on unsupported android versions
|
|
||||||
findPreference(PREF_EXPANDED_NOTIFICATION).setEnabled(false);
|
|
||||||
findPreference(PREF_EXPANDED_NOTIFICATION).setOnPreferenceClickListener(
|
|
||||||
preference -> {
|
|
||||||
Toast toast = Toast.makeText(getActivity(),
|
|
||||||
R.string.pref_expand_notify_unsupport_toast, Toast.LENGTH_SHORT);
|
|
||||||
toast.show();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
findPreference(UserPreferences.PREF_THEME)
|
findPreference(UserPreferences.PREF_THEME)
|
||||||
.setOnPreferenceChangeListener(
|
.setOnPreferenceChangeListener(
|
||||||
(preference, newValue) -> {
|
(preference, newValue) -> {
|
||||||
|
|
|
@ -159,14 +159,10 @@ public class PlayerWidgetJobService extends SafeJobIntentService {
|
||||||
|
|
||||||
if (status == PlayerStatus.PLAYING) {
|
if (status == PlayerStatus.PLAYING) {
|
||||||
views.setImageViewResource(R.id.butPlay, R.drawable.ic_pause_white_24dp);
|
views.setImageViewResource(R.id.butPlay, R.drawable.ic_pause_white_24dp);
|
||||||
if (Build.VERSION.SDK_INT >= 15) {
|
views.setContentDescription(R.id.butPlay, getString(R.string.pause_label));
|
||||||
views.setContentDescription(R.id.butPlay, getString(R.string.pause_label));
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
views.setImageViewResource(R.id.butPlay, R.drawable.ic_play_arrow_white_24dp);
|
views.setImageViewResource(R.id.butPlay, R.drawable.ic_play_arrow_white_24dp);
|
||||||
if (Build.VERSION.SDK_INT >= 15) {
|
views.setContentDescription(R.id.butPlay, getString(R.string.play_label));
|
||||||
views.setContentDescription(R.id.butPlay, getString(R.string.play_label));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
views.setOnClickPendingIntent(R.id.butPlay, createMediaButtonIntent());
|
views.setOnClickPendingIntent(R.id.butPlay, createMediaButtonIntent());
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
|
|
||||||
<style name="AntennaPod.TextView.Heading" parent="@android:style/TextAppearance.Medium">
|
|
||||||
<item name="android:textSize">@dimen/text_size_large</item>
|
|
||||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
|
||||||
<item name="android:fontFamily">sans-serif-light</item>
|
|
||||||
</style>
|
|
||||||
</resources>
|
|
|
@ -279,6 +279,7 @@
|
||||||
<style name="AntennaPod.TextView.Heading" parent="@android:style/TextAppearance.Medium">
|
<style name="AntennaPod.TextView.Heading" parent="@android:style/TextAppearance.Medium">
|
||||||
<item name="android:textSize">@dimen/text_size_large</item>
|
<item name="android:textSize">@dimen/text_size_large</item>
|
||||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||||
|
<item name="android:fontFamily">sans-serif-light</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="AntennaPod.TextView.ListItemPrimaryTitle" parent="@android:style/TextAppearance.Small">
|
<style name="AntennaPod.TextView.ListItemPrimaryTitle" parent="@android:style/TextAppearance.Small">
|
||||||
|
|
Loading…
Reference in New Issue