Do not return songs that have never been played in Database.history()

This commit is contained in:
vfsfitvnm 2022-06-22 16:41:40 +02:00
parent 4fa82703b6
commit 4e5f17de23

View file

@ -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