Remove local variable for seek duration

This commit is contained in:
Xiang Rong Lin 2019-11-25 16:30:37 +01:00
parent 949c01b37f
commit 334437137e
1 changed files with 2 additions and 4 deletions

View File

@ -954,14 +954,12 @@ public abstract class BasePlayer implements
public void onFastRewind() {
if (DEBUG) Log.d(TAG, "onFastRewind() called");
final int duration = getSeekDuration();
seekBy(-duration);
seekBy(-getSeekDuration());
}
public void onFastForward() {
if (DEBUG) Log.d(TAG, "onFastForward() called");
final int duration = getSeekDuration();
seekBy(duration);
seekBy(getSeekDuration());
}
private int getSeekDuration() {