mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
play an offline context by reference and filter its window
This commit is contained in:
@@ -79,9 +79,10 @@ class AlbumDetailViewModel(
|
||||
}
|
||||
}
|
||||
|
||||
fun play(startIndex: Int) {
|
||||
fun play(songId: String) {
|
||||
viewModelScope.launch {
|
||||
playbackController.playAlbum(sourceId.first(), albumId, startIndex.toLong())
|
||||
val id = sourceId.first()
|
||||
playbackController.playAlbum(id, albumId, libraryRepository.albumSongOrdinal(id, albumId, songId))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user