The last element listened to is the first in the list at the next start
This commit is contained in:
1 parent
9328ec87ab
commit
15e7c28b14
4 files changed
+59
-3
No files matched your search
@@ -36,4 +36,7 @@ public interface QueueDao {
|
||||
|
||||
@Query("UPDATE queue SET last_play=:timestamp WHERE id=:id")
|
||||
void setLastPlay(String id, long timestamp);
|
||||
|
||||
@Query("SELECT track_order FROM queue ORDER BY last_play DESC LIMIT 1")
|
||||
int getLastPlay();
|
||||
}
|
||||
Reference in new issue
Block a user