Small improvements

This commit is contained in:
M66B
2019-03-15 11:53:22 +00:00
parent c5b90389ee
commit c91443b99f
13 changed files with 180 additions and 201 deletions

View File

@@ -36,7 +36,10 @@ public interface DaoContact {
@Query("SELECT * FROM contact" +
" ORDER BY" +
" CASE WHEN favorite = 1 THEN 0 ELSE 1 END" +
" CASE" +
" WHEN favorite = 1 THEN 0" +
" WHEN favorite = 2 THEN 2" +
" ELSE 1 END" +
", times_contacted DESC" +
", last_contacted DESC")
LiveData<List<EntityContact>> liveContacts();