mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 16:40:53 +01: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