Fix manual math calculations
This commit is contained in:
parent
37f9c08fd9
commit
cfac6a3631
|
@ -481,7 +481,7 @@ public class FeedMedia extends FeedFile implements Playable {
|
|||
|
||||
@Override
|
||||
public void onPlaybackStart() {
|
||||
startPosition = (position > 0) ? position : 0;
|
||||
startPosition = Math.max(position, 0);
|
||||
playedDurationWhenStarted = played_duration;
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ public class RewindAfterPauseUtils {
|
|||
|
||||
int newPosition = currentPosition - (int) rewindTime;
|
||||
|
||||
return newPosition > 0 ? newPosition : 0;
|
||||
return Math.max(newPosition, 0);
|
||||
} else {
|
||||
return currentPosition;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue