Do not return songs that have never been played in Database.history()
This commit is contained in:
@@ -47,7 +47,7 @@ interface Database {
|
||||
fun songWithInfo(id: String): SongWithInfo?
|
||||
|
||||
@Transaction
|
||||
@Query("SELECT * FROM Song ORDER BY ROWID DESC")
|
||||
@Query("SELECT * FROM Song WHERE totalPlayTimeMs > 0 ORDER BY ROWID DESC")
|
||||
fun history(): Flow<List<SongWithInfo>>
|
||||
|
||||
@Transaction
|
||||
|
||||
Reference in New Issue
Block a user