Remove local variable for seek duration
This commit is contained in:
parent
5cb9e0d51f
commit
462a57d6ce
1 changed files with 2 additions and 4 deletions
|
|
@ -954,14 +954,12 @@ public abstract class BasePlayer implements
|
||||||
|
|
||||||
public void onFastRewind() {
|
public void onFastRewind() {
|
||||||
if (DEBUG) Log.d(TAG, "onFastRewind() called");
|
if (DEBUG) Log.d(TAG, "onFastRewind() called");
|
||||||
final int duration = getSeekDuration();
|
seekBy(-getSeekDuration());
|
||||||
seekBy(-duration);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onFastForward() {
|
public void onFastForward() {
|
||||||
if (DEBUG) Log.d(TAG, "onFastForward() called");
|
if (DEBUG) Log.d(TAG, "onFastForward() called");
|
||||||
final int duration = getSeekDuration();
|
seekBy(getSeekDuration());
|
||||||
seekBy(duration);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getSeekDuration() {
|
private int getSeekDuration() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue