Added a query to clear song history

This commit is contained in:
Omar 2022-03-04 14:01:34 +02:00
parent 6adf09254b
commit 0cdc83818a

View file

@ -39,4 +39,7 @@ interface HistoryDao {
@Query("SELECT * FROM HistoryEntity ORDER BY time_played DESC LIMIT $HISTORY_LIMIT")
fun observableHistorySongs(): LiveData<List<HistoryEntity>>
@Query("DELETE FROM HistoryEntity")
suspend fun clearHistory()
}