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?
|
fun songWithInfo(id: String): SongWithInfo?
|
||||||
|
|
||||||
@Transaction
|
@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>>
|
fun history(): Flow<List<SongWithInfo>>
|
||||||
|
|
||||||
@Transaction
|
@Transaction
|
||||||
|
|||||||
Reference in New Issue
Block a user