[fix] Use before register
This commit is contained in:
@@ -121,10 +121,11 @@ class VideoPlayerViewModel @Inject constructor(
|
|||||||
.build()
|
.build()
|
||||||
|
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
|
videos = mediaManager.queryVideoBulk(vs.first()[0], vs.map { it[1] })!!
|
||||||
|
|
||||||
val ii = database.userDao().getAll().first()
|
val ii = database.userDao().getAll().first()
|
||||||
val ix = ii.filter { it.id in videos.map{ m -> m.id } }.maxByOrNull { it.time }
|
val ix = ii.filter { it.id in videos.map{ m -> m.id } }.maxByOrNull { it.time }
|
||||||
|
|
||||||
videos = mediaManager.queryVideoBulk(vs.first()[0], vs.map { it[1] })!!
|
|
||||||
|
|
||||||
startPlay(
|
startPlay(
|
||||||
if(spec != "-1")
|
if(spec != "-1")
|
||||||
|
|||||||
Reference in New Issue
Block a user