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:
Tom Hennen 2016-03-22 17:28:00 -04:00
commit 7aa414d437
1 changed files with 2 additions and 4 deletions

View File

@ -587,10 +587,8 @@ public class PlaybackServiceMediaPlayer implements SharedPreferences.OnSharedPre
|| playerStatus == PlayerStatus.PREPARED
|| playerStatus == PlayerStatus.SEEKING) {
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();
}