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:
parent
f602e4586c
commit
24aa230f14
@ -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 });
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user