Fix manual math calculations

This commit is contained in:
TacoTheDank 2020-05-29 14:57:05 -04:00
parent 37f9c08fd9
commit cfac6a3631
2 changed files with 2 additions and 2 deletions

View File

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

View File

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