mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 07:03:35 +00:00
Add option to order and delete elements from queue by dragging and swiping
This commit is contained in:
@@ -50,6 +50,10 @@ public class PlayerBottomSheetViewModel extends AndroidViewModel {
|
||||
this.song = song;
|
||||
}
|
||||
|
||||
public void orderSongAfterSwap(List<Song> songs) {
|
||||
queueRepository.insertAllAndStartNew(songs);
|
||||
}
|
||||
|
||||
public void removeSong(int position) {
|
||||
queueRepository.deleteByPosition(position);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user