From 334437137eaae72cd574acbb47e22abafa16df83 Mon Sep 17 00:00:00 2001 From: Xiang Rong Lin <41164160+XiangRongLin@users.noreply.github.com> Date: Mon, 25 Nov 2019 16:30:37 +0100 Subject: [PATCH] Remove local variable for seek duration --- app/src/main/java/org/schabi/newpipe/player/BasePlayer.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java b/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java index 17be0998f..f35287648 100644 --- a/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java @@ -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() {