Fix playback button
Steps to reproduce: - Play - Pause - Close AudioPlayerActivity - Open AudioPlayerActivity - Tap speed button - Always sets to the one after 1.0
This commit is contained in:
parent
7702c9ee8c
commit
b4b46fb4d8
|
@ -639,6 +639,7 @@ public class LocalPSMP extends PlaybackServiceMediaPlayer {
|
||||||
float retVal = 1;
|
float retVal = 1;
|
||||||
if ((playerStatus == PlayerStatus.PLAYING
|
if ((playerStatus == PlayerStatus.PLAYING
|
||||||
|| playerStatus == PlayerStatus.PAUSED
|
|| playerStatus == PlayerStatus.PAUSED
|
||||||
|
|| playerStatus == PlayerStatus.INITIALIZED
|
||||||
|| playerStatus == PlayerStatus.PREPARED) && mediaPlayer.canSetSpeed()) {
|
|| playerStatus == PlayerStatus.PREPARED) && mediaPlayer.canSetSpeed()) {
|
||||||
retVal = mediaPlayer.getCurrentSpeedMultiplier();
|
retVal = mediaPlayer.getCurrentSpeedMultiplier();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue