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.
This commit is contained in:
Henrik Tunedal 2011-02-11 00:56:30 +01:00
parent f602e4586c
commit 24aa230f14

View File

@ -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 });
}