Set a descriptive summary on the per-feed playback speed setting

This commit is contained in:
Jonas Kalderstam 2019-09-12 11:06:05 +02:00
parent 6b1a7a9162
commit 7cc602a078
3 changed files with 4 additions and 8 deletions

View File

@ -128,14 +128,8 @@ public class FeedSettingsFragment extends PreferenceFragmentCompat {
private void updatePlaybackSpeedPreference() { private void updatePlaybackSpeedPreference() {
ListPreference feedPlaybackSpeedPreference = (ListPreference) findPreference(PREF_FEED_PLAYBACK_SPEED); ListPreference feedPlaybackSpeedPreference = (ListPreference) findPreference(PREF_FEED_PLAYBACK_SPEED);
String summary = feedPreferences.getFeedPlaybackSpeed(); String speedValue = feedPreferences.getFeedPlaybackSpeed();
feedPlaybackSpeedPreference.setValue(speedValue);
feedPlaybackSpeedPreference.setValue(summary);
if (summary.equals("global")) {
summary = getString(R.string.feed_auto_download_global);
}
feedPlaybackSpeedPreference.setSummary(summary);
} }
private void updateAutoDeleteSummary() { private void updateAutoDeleteSummary() {

View File

@ -9,6 +9,7 @@
<ListPreference <ListPreference
android:title="@string/playback_speed" android:title="@string/playback_speed"
android:summary="@string/pref_feed_playback_speed_sum"
android:key="feedPlaybackSpeed"/> android:key="feedPlaybackSpeed"/>
<Preference <Preference

View File

@ -449,6 +449,7 @@
<string name="pref_gpodnet_notifications_sum">This setting does not apply to authentication errors.</string> <string name="pref_gpodnet_notifications_sum">This setting does not apply to authentication errors.</string>
<string name="pref_playback_speed_title">Playback Speeds</string> <string name="pref_playback_speed_title">Playback Speeds</string>
<string name="pref_playback_speed_sum">Customize the speeds available for variable speed audio playback</string> <string name="pref_playback_speed_sum">Customize the speeds available for variable speed audio playback</string>
<string name="pref_feed_playback_speed_sum">The speed to use when starting audio playback for episodes in this feed</string>
<string name="pref_playback_time_respects_speed_title">Adjust media info to playback speed</string> <string name="pref_playback_time_respects_speed_title">Adjust media info to playback speed</string>
<string name="pref_playback_time_respects_speed_sum">Displayed position and duration are adapted to playback speed</string> <string name="pref_playback_time_respects_speed_sum">Displayed position and duration are adapted to playback speed</string>
<string name="pref_fast_forward">Fast Forward Skip Time</string> <string name="pref_fast_forward">Fast Forward Skip Time</string>