[Android] Cosmetic changes

Geoffrey Métais git at videolan.org
Mon Apr 18 10:00:58 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 15 16:48:08 2016 +0200| [e7e6f0128b98a6777f6a130e0dacb5afe3316f99] | committer: Geoffrey Métais

Cosmetic changes

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

 .../org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
index 2da6748..f9a324c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
@@ -98,7 +98,7 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
         final public boolean mIsSeparator;
 
         public ListItem(String title, String subTitle, MediaWrapper media, boolean isSeparator) {
-            mMediaList = new ArrayList<MediaWrapper>();
+            mMediaList = new ArrayList<>();
             if (media != null)
                 mMediaList.add(media);
             mTitle = title;
@@ -108,10 +108,10 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
     }
 
     public AudioBrowserListAdapter(Activity context, int itemType) {
-        mMediaItemMap = new ArrayMap<String, ListItem>();
-        mSeparatorItemMap = new ArrayMap<String, ListItem>();
-        mItems = new ArrayList<ListItem>();
-        mSections = new SparseArray<String>();
+        mMediaItemMap = new ArrayMap<>();
+        mSeparatorItemMap = new ArrayMap<>();
+        mItems = new ArrayList<>();
+        mSections = new SparseArray<>();
         mContext = context;
         if (itemType != ITEM_WITHOUT_COVER && itemType != ITEM_WITH_COVER)
             throw new IllegalArgumentException();
@@ -260,8 +260,7 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
                     firstSeparator = false;
                     sections.add(firstCharInString);
                 }
-            }
-            else if (firstSeparator) {
+            } else if (firstSeparator) {
                 ListItem item = new ListItem("#", null, null, true);
                 mItems.add(i, item);
                 mSections.put(i, "#");



More information about the Android mailing list