[Android] TV: Fix video listing on main view
Geoffrey Métais
git at videolan.org
Fri May 27 16:42:36 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May 27 16:09:40 2016 +0200| [4e89b185e78adc11c49f6149acf54b5f4c84cafe] | committer: Geoffrey Métais
TV: Fix video listing on main view
> https://code.videolan.org/videolan/vlc-android/commit/4e89b185e78adc11c49f6149acf54b5f4c84cafe
---
vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
index 5541b60..e192925 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -292,8 +292,11 @@ public class MainTvActivity extends BaseTvActivity implements IVideoBrowser, OnI
}
public void updateList() {
- if (mVideoAdapter != null)
+ if (mVideoAdapter != null) {
+ if (mVideoAdapter.size() == 0)
+ mVideoAdapter.addAll(0, MediaLibrary.getInstance().getVideoItems());
mVideoAdapter.notifyArrayItemRangeChanged(0, mVideoAdapter.size());
+ }
}
@Override
More information about the Android
mailing list