[Android] TV: Don't remove unknown album if unique

Geoffrey Métais git at videolan.org
Thu Nov 24 18:01:36 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Nov 24 17:38:12 2016 +0100| [a29985579fdb3c4cbeff7c4cf1b4859a642d06fa] | committer: Geoffrey Métais

TV: Don't remove unknown album if unique

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

 vlc-android/src/org/videolan/vlc/gui/tv/browser/MusicFragment.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/MusicFragment.java b/vlc-android/src/org/videolan/vlc/gui/tv/browser/MusicFragment.java
index ad7db88..e967ff3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/MusicFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/MusicFragment.java
@@ -169,7 +169,7 @@ public class MusicFragment extends MediaLibBrowserFragment implements OnItemView
 
         protected void onProgressUpdate(MediaLibraryItem[]... datalist){
             List<Object> list = Arrays.asList(((Object[]) datalist[0]));
-            if (TextUtils.isEmpty(((MediaLibraryItem)list.get(0)).getTitle()))
+            if (TextUtils.isEmpty(((MediaLibraryItem)list.get(0)).getTitle()) && list.size() > 1)
                 list = list.subList(1, list.size());
             mAdapter.addAll(0, list);
         }



More information about the Android mailing list