[Android] Remove redundant seek call
Geoffrey Métais
git at videolan.org
Tue May 16 10:03:51 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 16 09:55:23 2017 +0200| [4e449dd2272187ddca980bc082e69a1fb819eafe] | committer: Geoffrey Métais
Remove redundant seek call
> https://code.videolan.org/videolan/vlc-android/commit/4e449dd2272187ddca980bc082e69a1fb819eafe
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 099d73d..f1754c7 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1514,12 +1514,9 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
mShuffling = mSettings.getBoolean(audio ? "audio_shuffling" : "media_shuffling", false);
mRepeating = mSettings.getInt(audio ? "audio_repeating" : "media_repeating", REPEAT_NONE);
int position = mSettings.getInt(audio ? "position_in_audio_list" : "position_in_media_list", 0);
- long time = mSettings.getLong(audio ? "position_in_song" : "position_in_media", -1);
- mSavedTime = time;
+ mSavedTime = mSettings.getLong(audio ? "position_in_song" : "position_in_media", -1);
// load playlist
load(playList, position);
- if (time > 0)
- seek(time);
if (!audio) {
boolean paused = mSettings.getBoolean(PreferencesActivity.VIDEO_PAUSED, !isPlaying());
float rate = mSettings.getFloat(PreferencesActivity.VIDEO_SPEED, getRate());
More information about the Android
mailing list