From 927316d24b56c586e55dbab702ee25fa6edb7867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Thu, 19 Mar 2020 20:18:52 +0100 Subject: [PATCH] [Firebase] Disable sync by firebase when profile is excluded from auto sync. --- .../java/pl/szczodrzynski/edziennik/data/db/dao/ProfileDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/data/db/dao/ProfileDao.kt b/app/src/main/java/pl/szczodrzynski/edziennik/data/db/dao/ProfileDao.kt index 9f7eb5d8..3225141e 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/data/db/dao/ProfileDao.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/data/db/dao/ProfileDao.kt @@ -40,7 +40,7 @@ interface ProfileDao { @Query("SELECT profileId FROM profiles WHERE loginStoreId = :loginStoreId ORDER BY profileId") fun getIdsByLoginStoreIdNow(loginStoreId: Int): List - @get:Query("SELECT * FROM profiles WHERE archived = 0 AND profileId >= 0 ORDER BY profileId") + @get:Query("SELECT * FROM profiles WHERE syncEnabled = 1 AND archived = 0 AND profileId >= 0 ORDER BY profileId") val profilesForFirebaseNow: List @get:Query("SELECT profileId FROM profiles WHERE syncEnabled = 1 AND archived = 0 AND profileId >= 0 ORDER BY profileId")