[Android] Remove useless variable
Geoffrey Métais
git at videolan.org
Fri Jun 9 17:19:36 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jun 9 17:15:10 2017 +0200| [43b134524aa51ae2ec2b574d1ecfd2a51156ce1b] | committer: Geoffrey Métais
Remove useless variable
> https://code.videolan.org/videolan/vlc-android/commit/43b134524aa51ae2ec2b574d1ecfd2a51156ce1b
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 2e61184cd..8e7ed34cd 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1843,13 +1843,11 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
mMediaList.removeEventListener(mListEventListener);
mMediaList.clear();
- MediaWrapperList currentMediaList = mMediaList;
mPrevious.clear();
- for (int i = 0; i < mediaList.size(); i++) {
- currentMediaList.add(mediaList.get(i));
- }
+ for (MediaWrapper media : mediaList)
+ mMediaList.add(media);
if (mMediaList.size() == 0) {
Log.w(TAG, "Warning: empty media list, nothing to play !");
More information about the Android
mailing list