-Improved play queue message bus
-Hooking play queue engines with video players (to be removed) -Proof of concept for previous and next controls
This commit is contained in:
parent
20f8c3c262
commit
5d8086879a
17 changed files with 345 additions and 95 deletions
|
|
@ -461,7 +461,11 @@ public class PlaylistFragment extends BaseFragment {
|
|||
}
|
||||
|
||||
private void handlePlayListInfo(PlayListInfo info, boolean onlyVideos, boolean addVideos) {
|
||||
if (currentPlaylistInfo == null) currentPlaylistInfo = info;
|
||||
if (currentPlaylistInfo == null) {
|
||||
currentPlaylistInfo = info;
|
||||
} else {
|
||||
currentPlaylistInfo.related_streams.addAll(info.related_streams);
|
||||
}
|
||||
|
||||
animateView(errorPanel, false, 300);
|
||||
animateView(playlistStreams, true, 200);
|
||||
|
|
@ -494,12 +498,9 @@ public class PlaylistFragment extends BaseFragment {
|
|||
hasNextPage = info.hasNextPage;
|
||||
if (!hasNextPage) infoListAdapter.showFooter(false);
|
||||
|
||||
//if (!listRestored) {
|
||||
if (addVideos) {
|
||||
infoListAdapter.addInfoItemList(info.related_streams);
|
||||
currentPlaylistInfo.related_streams.addAll(info.related_streams);
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue