[Android] Java 1.6 compliant with lists initialization

Geoffrey Métais git at videolan.org
Thu Feb 26 11:28:14 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 26 11:27:51 2015 +0100| [06a0e12d52663090e530327478849b34d4420f4c] | committer: Geoffrey Métais

Java 1.6 compliant with lists initialization

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=06a0e12d52663090e530327478849b34d4420f4c
---

 vlc-android/src/org/videolan/vlc/gui/AboutFragment.java            |    2 +-
 .../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java   |    2 +-
 .../src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java       |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/AboutFragment.java b/vlc-android/src/org/videolan/vlc/gui/AboutFragment.java
index 2a584e5..8e0ae90 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AboutFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AboutFragment.java
@@ -92,7 +92,7 @@ public class AboutFragment extends Fragment {
             }
         });
 
-        ArrayList<View> lists = new ArrayList<>();
+        ArrayList<View> lists = new ArrayList<View>();
         lists.add(aboutMain);
         lists.add(t);
         String[] titles = new String[] {getString(R.string.about), getString(R.string.licence)};
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index 6312fd8..5ef5f05 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -121,7 +121,7 @@ public class AudioAlbumsSongsFragment extends BrowserFragment implements SwipeRe
         ListView albumsList = (ListView) v.findViewById(R.id.albums);
         ListView songsList = (ListView) v.findViewById(R.id.songs);
 
-        ArrayList<View> lists = new ArrayList<>();
+        ArrayList<View> lists = new ArrayList<View>();
         lists.add(albumsList);
         lists.add(songsList);
         String[] titles = new String[] {getString(R.string.albums), getString(R.string.songs)};
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index 5bf715e..f50edb6 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -82,7 +82,7 @@ public class AudioBrowserFragment extends BrowserFragment implements SwipeRefres
     private AudioBrowserListAdapter mAlbumsAdapter;
     private AudioBrowserListAdapter mSongsAdapter;
     private AudioBrowserListAdapter mGenresAdapter;
-    private ConcurrentLinkedQueue<AudioBrowserListAdapter> mAdaptersToNotify = new ConcurrentLinkedQueue<>();
+    private ConcurrentLinkedQueue<AudioBrowserListAdapter> mAdaptersToNotify = new ConcurrentLinkedQueue<AudioBrowserListAdapter>();
 
     private ViewPager mViewPager;
     private SlidingTabLayout mSlidingTabLayout;
@@ -138,7 +138,7 @@ public class AudioBrowserFragment extends BrowserFragment implements SwipeRefres
         genreList.setAdapter(mGenresAdapter);
 
 
-        mLists = new ArrayList<>();
+        mLists = new ArrayList<View>();
         mLists.add(artistList);
         mLists.add(albumList);
         mLists.add(songsList);



More information about the Android mailing list