Start service at boot only if synchronizing accounts

This commit is contained in:
M66B
2018-08-28 19:51:43 +00:00
parent 5828947007
commit 3fee5e24ec
2 changed files with 14 additions and 2 deletions

View File

@@ -44,6 +44,9 @@ public interface DaoAccount {
@Query("SELECT * FROM account WHERE `primary`")
EntityAccount getPrimaryAccount();
@Query("SELECT COUNT(*) FROM account WHERE synchronize")
int getSynchronizingAccountCount();
@Query("SELECT * FROM account WHERE `primary`")
LiveData<EntityAccount> livePrimaryAccount();