Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Casanowow Life for love
VLC-Android
Commits
7dd2d2e7
Commit
7dd2d2e7
authored
Aug 10, 2017
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TV: Initial update even if ML is not initiated
parent
11d1e1c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+15
-13
No files found.
vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
View file @
7dd2d2e7
...
...
@@ -168,23 +168,25 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
/*
* skip browser and show directly Audio Player if a song is playing
*/
if
(
mMediaLibrary
.
isInitiated
()
&&
(
mRowsAdapter
==
null
||
mRowsAdapter
.
size
()
==
0
)
&&
Permissions
.
canReadStorage
())
if
((
mRowsAdapter
==
null
||
mRowsAdapter
.
size
()
==
0
)
&&
Permissions
.
canReadStorage
())
update
();
else
{
updateBrowsers
();
updateNowPlayingCard
();
VLCApplication
.
runBackground
(
new
Runnable
()
{
@Override
public
void
run
()
{
final
MediaWrapper
[]
history
=
VLCApplication
.
getMLInstance
().
lastMediaPlayed
();
mHandler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
updateHistory
(
history
);
}
});
}
});
if
(
mMediaLibrary
.
isInitiated
())
{
VLCApplication
.
runBackground
(
new
Runnable
()
{
@Override
public
void
run
()
{
final
MediaWrapper
[]
history
=
mMediaLibrary
.
lastMediaPlayed
();
mHandler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
updateHistory
(
history
);
}
});
}
});
}
}
}
...
...
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