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:
ByteHamster 2020-01-20 00:43:24 +01:00
parent 7702c9ee8c
commit b4b46fb4d8
1 changed files with 1 additions and 0 deletions

View File

@ -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();
} }