Commit 656373e5 authored by Geoffrey Métais's avatar Geoffrey Métais

TV: Filter video media from now playing audio card

parent d5adc17b
......@@ -556,10 +556,12 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
public void updateNowPlayingCard () {
if (mService == null)
return;
if ((!mService.hasMedia() || mService.canSwitchToVideo()) && mNowPlayingCard != null) {
final boolean hasmedia = mService.hasMedia();
final boolean canSwitch = mService.canSwitchToVideo();
if ((!hasmedia || canSwitch) && mNowPlayingCard != null) {
mCategoriesAdapter.removeItems(0, 1);
mNowPlayingCard = null;
} else if (mService.hasMedia()){
} else if (hasmedia && !canSwitch){
final MediaWrapper mw = mService.getCurrentMediaWrapper();
final String display = MediaUtils.getMediaTitle(mw) + " - " + MediaUtils.getMediaReferenceArtist(MainTvActivity.this, mw);
VLCApplication.runBackground(new Runnable() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment