Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
243
Issues
243
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-Android
Commits
656373e5
Commit
656373e5
authored
Oct 13, 2017
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TV: Filter video media from now playing audio card
parent
d5adc17b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+4
-2
No files found.
vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
View file @
656373e5
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment