mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Start service at boot only if synchronizing accounts
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user