mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 02:37:25 +01:00
mobile: Update dependencies and adapt to changes
This commit is contained in:
parent
b14dcd67f2
commit
8752ac81dd
15 changed files with 326 additions and 826 deletions
|
|
@ -122,10 +122,12 @@ abstract class MusicusPlayback {
|
|||
///
|
||||
/// Requires [playlist] to be up to date.
|
||||
void updateCurrentTrack(int index) {
|
||||
currentIndex.add(index);
|
||||
if (index != null) {
|
||||
currentIndex.add(index);
|
||||
|
||||
if (playlist.value != null && index >= 0 && index < playlist.value.length) {
|
||||
currentTrack.add(playlist.value[index]);
|
||||
if (playlist.value != null && index >= 0 && index < playlist.value.length) {
|
||||
currentTrack.add(playlist.value[index]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue