[UI] New notifications view.

This commit is contained in:
Kuba Szczodrzyński
2019-11-22 22:41:40 +01:00
parent 34061695f9
commit 83d123e341
11 changed files with 296 additions and 251 deletions

View File

@ -21,7 +21,10 @@ interface NotificationDao {
@Query("DELETE FROM notifications WHERE profileId = :profileId")
fun clear(profileId: Int)
@Query("SELECT * FROM notifications")
@Query("DELETE FROM notifications")
fun clearAll()
@Query("SELECT * FROM notifications ORDER BY addedDate DESC")
fun getAll(): LiveData<List<Notification>>
@Query("SELECT * FROM notifications")