浏览代码

Fixed a bug with detection

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 年之前
父节点
当前提交
37b3f6f04c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/owncloud/android/datamodel/SyncedFolderProvider.java

+ 2 - 2
src/main/java/com/owncloud/android/datamodel/SyncedFolderProvider.java

@@ -82,9 +82,9 @@ public class SyncedFolderProvider extends Observable {
         int count = 0;
         Cursor cursor = mContentResolver.query(
                 ProviderMeta.ProviderTableMeta.CONTENT_URI_SYNCED_FOLDERS,
-                new String[]{ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_ENABLED},
-                ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_ENABLED + " == 1",
                 null,
+                ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_ENABLED + " = ?",
+                new String[]{"1"},
                 null
         );