use of org.jellyfin.androidtv.ui.presentation.InfoCardPresenter in project jellyfin-androidtv by jellyfin.
the class FullDetailsActivity method addInfoRows.
private void addInfoRows(ArrayObjectAdapter adapter) {
if (KoinJavaComponent.<UserPreferences>get(UserPreferences.class).get(UserPreferences.Companion.getDebuggingEnabled()) && mBaseItem.getMediaSources() != null) {
for (MediaSourceInfo ms : mBaseItem.getMediaSources()) {
if (ms.getMediaStreams() != null && ms.getMediaStreams().size() > 0) {
HeaderItem header = new HeaderItem("Media Details" + (ms.getContainer() != null ? " (" + ms.getContainer() + ")" : ""));
ArrayObjectAdapter infoAdapter = new ArrayObjectAdapter(new InfoCardPresenter());
for (MediaStream stream : ms.getMediaStreams()) {
infoAdapter.add(stream);
}
adapter.add(new ListRow(header, infoAdapter));
}
}
}
}
Aggregations