[Android] TV: Look for history items in medialibrary

Geoffrey Métais git at videolan.org
Thu Jul 19 10:26:07 CEST 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul 19 10:25:26 2018 +0200| [bb64d84bacb5a34d608f89cb78c38e2cdf0905ca] | committer: Geoffrey Métais

TV: Look for history items in medialibrary

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

 vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java | 2 +-
 1 file changed, 1 insertion(+), 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 603cacf07..da11fe4c7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -491,7 +491,7 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
         else mHistoryAdapter.clear();
         if (!mSettings.getBoolean(PreferencesFragment.PLAYBACK_HISTORY, true)) return null;
         for (int i = 0; i < history.length; ++i) {
-            final MediaWrapper item = history[i];
+            final MediaWrapper item = mMediaLibrary.findMedia(history[i]);
             mHistoryAdapter.add(item);
             mHistoryIndex.put(item.getLocation(), i);
         }



More information about the Android mailing list