Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Geoffrey Métais
VLC-Android
Commits
877dc58f
Commit
877dc58f
authored
May 11, 2018
by
Geoffrey Métais
Browse files
Don't determine next index during media transition
parent
1b335542
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
View file @
877dc58f
...
...
@@ -680,11 +680,8 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
MediaPlayer
.
Event
.
EndReached
->
{
saveMediaMeta
()
if
(
isBenchmark
)
player
.
setPreviousStats
()
launch
(
UI
,
CoroutineStart
.
UNDISPATCHED
)
{
determinePrevAndNextIndices
(
true
)
if
(
nextIndex
==
-
1
)
savePosition
(
true
)
next
()
}
if
(
nextIndex
==
-
1
)
savePosition
(
true
)
next
()
}
MediaPlayer
.
Event
.
EncounteredError
->
{
service
.
showToast
(
service
.
getString
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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