mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 13:19:44 +02:00
feat(player): continue playback with Library autoplay
This commit is contained in:
1 parent
9e4f24ba24
commit
5f0463a7a4
14 files changed
+643
-12
No files matched your search
@@ -244,6 +244,7 @@ PlayableMedia playableFromHistory(DownloadHistoryItem item) {
|
||||
bitrate: item.bitrate,
|
||||
format: item.format,
|
||||
explicit: item.explicit,
|
||||
genre: item.genre,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -270,5 +271,6 @@ PlayableMedia playableFromLocal(LocalLibraryItem item) {
|
||||
bitrate: item.bitrate,
|
||||
format: item.format,
|
||||
explicit: item.explicit,
|
||||
genre: item.genre,
|
||||
);
|
||||
}
|
||||
@@ -556,6 +556,11 @@ class SettingsNotifier extends Notifier<AppSettings> {
|
||||
_saveSettings();
|
||||
}
|
||||
|
||||
void setAutoplay(bool enabled) {
|
||||
state = state.copyWith(autoplay: enabled);
|
||||
_saveSettings();
|
||||
}
|
||||
|
||||
void setEmbedMetadata(bool enabled) {
|
||||
state = state.copyWith(embedMetadata: enabled);
|
||||
_saveSettings();
|
||||
|
||||
Reference in new issue
Block a user