mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-23 12:53:08 +00:00
distinguish between recording in stream for progress
This commit is contained in:
parent
9eb1829bf5
commit
5ad489d69d
1 changed files with 15 additions and 7 deletions
|
@ -167,9 +167,13 @@ public class OverlayFragment extends PlaybackFragment{
|
|||
ps.addClassPresenter(ListRow.class, new ListRowPresenter());
|
||||
mRowsAdapter = new ArrayObjectAdapter(ps);
|
||||
mRowsAdapter.add(controlsRow);
|
||||
if(mSelectedEvent.getMetadata() != null && mSelectedEvent.getMetadata().getRelated() != null){
|
||||
mRowsAdapter.add(getRelatedItems());
|
||||
setOnItemViewClickedListener(new ItemViewClickedListener(this));
|
||||
if(eventType == DetailsActivity.TYPE_RECORDING){
|
||||
if(mSelectedEvent.getMetadata() != null && mSelectedEvent.getMetadata().getRelated() != null){
|
||||
mRowsAdapter.add(getRelatedItems());
|
||||
setOnItemViewClickedListener(new ItemViewClickedListener(this));
|
||||
}
|
||||
} else if(eventType == DetailsActivity.TYPE_STREAM){
|
||||
// TODO add other streams as related events
|
||||
}
|
||||
setAdapter(mRowsAdapter);
|
||||
|
||||
|
@ -237,15 +241,19 @@ public class OverlayFragment extends PlaybackFragment{
|
|||
}
|
||||
|
||||
public int getCurrentPosition() {
|
||||
if(mCallback != null){
|
||||
return (int) mCallback.getCurrentPosition();
|
||||
if(eventType == DetailsActivity.TYPE_RECORDING){
|
||||
if(mCallback != null){
|
||||
return (int) mCallback.getCurrentPosition();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private long getCurrentPositionLong(){
|
||||
if(mCallback != null){
|
||||
return mCallback.getCurrentPosition();
|
||||
if(eventType == DetailsActivity.TYPE_RECORDING){
|
||||
if(mCallback != null){
|
||||
return mCallback.getCurrentPosition();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue