mirror of
https://github.com/stonega/tsacdop
synced 2025-02-18 04:20:37 +01:00
Fixed playlist reorder error,
This commit is contained in:
parent
f8db1b756f
commit
ff719ab108
@ -244,10 +244,11 @@ class _PlaylistPageState extends State<PlaylistPage> {
|
||||
if (newIndex > oldIndex) {
|
||||
newIndex -= 1;
|
||||
}
|
||||
audio.reorderPlaylist(newIndex, oldIndex);
|
||||
final episodeRemove = episodes.removeAt(oldIndex);
|
||||
audio.reorderPlaylist(oldIndex, newIndex);
|
||||
// final episodeRemove = episodes.removeAt(oldIndex);
|
||||
// print(episodeRemove.title);
|
||||
setState(() {
|
||||
episodes.insert(newIndex, episodeRemove);
|
||||
// episodes.insert(newIndex, episodeRemove);
|
||||
});
|
||||
},
|
||||
scrollDirection: Axis.vertical,
|
||||
|
Loading…
x
Reference in New Issue
Block a user