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
37cda385
Commit
37cda385
authored
May 14, 2018
by
Geoffrey Métais
Browse files
Restore systematic media expand
parent
67f3eac9
Changes
2
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
View file @
37cda385
...
...
@@ -683,7 +683,10 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
if
(
isBenchmark
)
player
.
setPreviousStats
()
if
(
nextIndex
==
-
1
)
savePosition
(
true
)
}
next
()
launch
(
UI
,
CoroutineStart
.
UNDISPATCHED
)
{
determinePrevAndNextIndices
(
true
)
next
()
}
}
MediaPlayer
.
Event
.
EncounteredError
->
{
service
.
showToast
(
service
.
getString
(
...
...
vlc-android/src/org/videolan/vlc/util/Kextensions.kt
View file @
37cda385
...
...
@@ -7,6 +7,7 @@ import android.support.v4.app.Fragment
import
android.support.v4.app.FragmentActivity
import
kotlinx.coroutines.experimental.CoroutineStart
import
kotlinx.coroutines.experimental.delay
import
org.videolan.libvlc.Media
import
java.io.File
import
java.net.URI
import
java.net.URISyntaxException
...
...
@@ -47,4 +48,7 @@ suspend fun retry (
return
block
()
// last attempt
}
fun
uiStart
()
=
if
(
Looper
.
getMainLooper
()
==
Looper
.
myLooper
())
CoroutineStart
.
UNDISPATCHED
else
CoroutineStart
.
DEFAULT
\ No newline at end of file
fun
uiStart
()
=
if
(
Looper
.
getMainLooper
()
==
Looper
.
myLooper
())
CoroutineStart
.
UNDISPATCHED
else
CoroutineStart
.
DEFAULT
fun
Media
?.
canExpand
()
=
this
!=
null
&&
(
type
==
Media
.
Type
.
Directory
||
type
==
Media
.
Type
.
Playlist
)
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