Cleaning up moved or deleted songs from Smart playlists i.e. History, Top played
This commit is contained in:
parent
2dcbe0801b
commit
dcc04c6ea4
4 changed files with 37 additions and 1 deletions
|
@ -26,6 +26,8 @@ interface HistoryDao {
|
|||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
suspend fun insertSongInHistory(historyEntity: HistoryEntity)
|
||||
|
||||
@Query("DELETE FROM HistoryEntity WHERE id= :songId")
|
||||
fun deleteSongInHistory(songId: Long)
|
||||
@Query("SELECT * FROM HistoryEntity WHERE id = :songId LIMIT 1")
|
||||
suspend fun isSongPresentInHistory(songId: Long): HistoryEntity?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue