#3248 Review findings
This commit is contained in:
parent
aa4d3bde94
commit
7f0e642069
@ -43,7 +43,7 @@ public class FeedSettingsFragment extends PreferenceFragmentCompat {
|
||||
setupEpisodeFilterPreference();
|
||||
|
||||
updateAutoDeleteSummary();
|
||||
updateVolumeReductionSummary();
|
||||
updateVolumeReductionValue();
|
||||
updateAutoDownloadEnabled();
|
||||
}).dispose();
|
||||
}
|
||||
@ -131,13 +131,13 @@ public class FeedSettingsFragment extends PreferenceFragmentCompat {
|
||||
break;
|
||||
}
|
||||
feed.savePreferences();
|
||||
updateVolumeReductionSummary();
|
||||
updateVolumeReductionValue();
|
||||
// TODO maxbechtold Check if we can call setVolume for the PlaybackService, if running. Else, show toast?
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
private void updateVolumeReductionSummary() {
|
||||
private void updateVolumeReductionValue() {
|
||||
ListPreference volumeReductionPreference = (ListPreference) findPreference("volumeReduction");
|
||||
|
||||
switch (feedPreferences.getVolumeReductionSetting()) {
|
||||
|
@ -3,7 +3,8 @@ package de.danoeh.antennapod.core.service.playback;
|
||||
import de.danoeh.antennapod.core.feed.FeedPreferences;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user