Skip to content
Snippets Groups Projects
Commit bb64d84b authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

TV: Look for history items in medialibrary

parent e6253806
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment