mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-01 03:06:48 +01:00
When retrieving position of current episode, regard position 0 [unplayed] as valid
This commit is contained in:
parent
a994cd4c08
commit
3adb63fbc7
@ -618,10 +618,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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user