From 24aa230f149323eeea866906f909300f6769f28d Mon Sep 17 00:00:00 2001 From: Henrik Tunedal Date: Fri, 11 Feb 2011 00:56:30 +0100 Subject: [PATCH] Make the repository checkboxes work. The checkboxes on the repository management screen did nothing. Calling Cursor.getCount() on the returned cursor magically fixed it - perhaps there's some sort of lazy evaluation? - but the less magical execSQL method seems like a better way. --- src/org/fdroid/fdroid/DB.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/fdroid/fdroid/DB.java b/src/org/fdroid/fdroid/DB.java index cf705b0c6..aa3de3511 100644 --- a/src/org/fdroid/fdroid/DB.java +++ b/src/org/fdroid/fdroid/DB.java @@ -655,8 +655,8 @@ public class DB { } public void changeServerStatus(String address) { - db.rawQuery("update " + TABLE_REPO - + " set inuse=1-inuse where address= ?", + db.execSQL("update " + TABLE_REPO + + " set inuse=1-inuse where address = ?", new String[] { address }); }