mobile: Update dependencies and adapt to changes

This commit is contained in:
Elias Projahn 2022-05-07 19:43:55 +02:00
parent b14dcd67f2
commit 8752ac81dd
15 changed files with 326 additions and 826 deletions

View file

@ -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]);
}
}
}
}