Added a query to clear song history
This commit is contained in:
parent
6adf09254b
commit
0cdc83818a
1 changed files with 3 additions and 0 deletions
|
@ -39,4 +39,7 @@ interface HistoryDao {
|
||||||
|
|
||||||
@Query("SELECT * FROM HistoryEntity ORDER BY time_played DESC LIMIT $HISTORY_LIMIT")
|
@Query("SELECT * FROM HistoryEntity ORDER BY time_played DESC LIMIT $HISTORY_LIMIT")
|
||||||
fun observableHistorySongs(): LiveData<List<HistoryEntity>>
|
fun observableHistorySongs(): LiveData<List<HistoryEntity>>
|
||||||
|
|
||||||
|
@Query("DELETE FROM HistoryEntity")
|
||||||
|
suspend fun clearHistory()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue