Merge pull request #1802 from mfietz/issue/1780-position
When retrieving position of current episode, regard position 0 as valid
This commit is contained in:
commit
7aa414d437
|
@ -587,10 +587,8 @@ public class PlaybackServiceMediaPlayer implements SharedPreferences.OnSharedPre
|
||||||
|| playerStatus == PlayerStatus.PREPARED
|
|| playerStatus == PlayerStatus.PREPARED
|
||||||
|| playerStatus == PlayerStatus.SEEKING) {
|
|| playerStatus == PlayerStatus.SEEKING) {
|
||||||
retVal = mediaPlayer.getCurrentPosition();
|
retVal = mediaPlayer.getCurrentPosition();
|
||||||
if(retVal <= 0 && media != null && media.getPosition() > 0) {
|
|
||||||
retVal = media.getPosition();
|
|
||||||
}
|
}
|
||||||
} else if (media != null && media.getPosition() > 0) {
|
if (retVal <= 0 && media != null && media.getPosition() >= 0) {
|
||||||
retVal = media.getPosition();
|
retVal = media.getPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue