Added review dialog

This commit is contained in:
M66B
2019-09-21 22:18:24 +02:00
parent 0bffc2b0f4
commit ebc7c98425
7 changed files with 177 additions and 71 deletions

View File

@@ -93,11 +93,14 @@ public interface DaoAccount {
" WHERE account.synchronize) AS operations")
LiveData<TupleAccountStats> liveStats();
@Query("SELECT account.id, account.swipe_left, l.type AS left_type, account.swipe_right, r.type AS right_type" +
@Query("SELECT account.id" +
", account.swipe_left, l.type AS left_type, l.name AS left_name" +
", account.swipe_right, r.type AS right_type, r.name AS right_name" +
" FROM account" +
" LEFT JOIN folder l ON l.id = account.swipe_left" +
" LEFT JOIN folder r ON r.id = account.swipe_right")
LiveData<List<TupleAccountSwipes>> liveAccountSwipes();
" LEFT JOIN folder r ON r.id = account.swipe_right" +
" WHERE :account IS NULL OR account.id = :account")
LiveData<List<TupleAccountSwipes>> liveAccountSwipes(Long account);
@Insert
long insertAccount(EntityAccount account);