Do not return songs that have never been played in Database.history()
This commit is contained in:
parent
4fa82703b6
commit
4e5f17de23
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue