[Android] Change getMedias return type

Geoffrey Métais git at videolan.org
Mon Jan 2 16:00:44 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jan  2 14:52:20 2017 +0100| [9816b034c0830f77180e7581fe6eb9836389bfdd] | committer: Geoffrey Métais

Change getMedias return type

> https://code.videolan.org/videolan/vlc-android/commit/9816b034c0830f77180e7581fe6eb9836389bfdd
---

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index f9ccef3..d322003 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1936,7 +1936,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
 
     @MainThread
     public void append(MediaWrapper media) {
-        ArrayList<MediaWrapper> arrayList = new ArrayList<MediaWrapper>();
+        ArrayList<MediaWrapper> arrayList = new ArrayList<>();
         arrayList.add(media);
         append(arrayList);
     }
@@ -1977,8 +1977,8 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
     }
 
     @MainThread
-    public List<MediaWrapper> getMedias() {
-        final ArrayList<MediaWrapper> ml = new ArrayList<MediaWrapper>();
+    public ArrayList<MediaWrapper> getMedias() {
+        final ArrayList<MediaWrapper> ml = new ArrayList<>();
         for (int i = 0; i < mMediaList.size(); i++) {
             ml.add(mMediaList.getMedia(i));
         }
@@ -1987,7 +1987,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
 
     @MainThread
     public List<String> getMediaLocations() {
-        ArrayList<String> medias = new ArrayList<String>();
+        ArrayList<String> medias = new ArrayList<>();
         for (int i = 0; i < mMediaList.size(); i++) {
             medias.add(mMediaList.getMRL(i));
         }



More information about the Android mailing list