Included Media playback speed into controller getter
This commit is contained in:
parent
60eb41048f
commit
d746121a9b
|
@ -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
|
||||
|
|
|
@ -746,7 +746,7 @@ public class PlaybackController {
|
|||
if (playbackService != null && canSetPlaybackSpeed()) {
|
||||
return playbackService.getCurrentPlaybackSpeed();
|
||||
} else {
|
||||
return -1;
|
||||
return UserPreferences.getPlaybackSpeed(getMedia());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue