Included Media playback speed into controller getter

This commit is contained in:
Jonas Kalderstam 2019-09-14 00:13:19 +02:00
parent 60eb41048f
commit d746121a9b
2 changed files with 1 additions and 5 deletions

View File

@ -106,10 +106,6 @@ public class AudioplayerActivity extends MediaplayerInfoActivity {
format.setDecimalSeparator('.');
float currentSpeedValue = controller.getCurrentPlaybackSpeedMultiplier();
if (currentSpeedValue == -1) {
currentSpeedValue = UserPreferences.getPlaybackSpeed(controller.getMedia());
}
String currentSpeed = new DecimalFormat("0.00", format).format(currentSpeedValue);
// Provide initial value in case the speed list has changed

View File

@ -746,7 +746,7 @@ public class PlaybackController {
if (playbackService != null && canSetPlaybackSpeed()) {
return playbackService.getCurrentPlaybackSpeed();
} else {
return -1;
return UserPreferences.getPlaybackSpeed(getMedia());
}
}