Commit 59920fcc authored by Geoffrey Métais's avatar Geoffrey Métais

Reduce scope of size variable

(cherry picked from commit 029158cd)
parent bc4a254a
...@@ -1224,9 +1224,9 @@ public class PlaybackService extends Service implements IVLCVout.Callback { ...@@ -1224,9 +1224,9 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
@MainThread @MainThread
public void previous() { public void previous() {
int size = mMediaList.size();
if (hasPrevious() && mCurrentIndex > 0 && if (hasPrevious() && mCurrentIndex > 0 &&
(!mMediaPlayer.isSeekable() || mMediaPlayer.getTime() < 2000l)) { (!mMediaPlayer.isSeekable() || mMediaPlayer.getTime() < 2000l)) {
int size = mMediaList.size();
mCurrentIndex = mPrevIndex; mCurrentIndex = mPrevIndex;
if (mPrevious.size() > 0) if (mPrevious.size() > 0)
mPrevious.pop(); mPrevious.pop();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment