mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-06-19 05:10:05 -04:00
Use integer instead of boolean.
There is some magic conversions going on so that booleans get converted into integers, but they are only on Android. Under robolectric, it throws a class cast exception instead.
This commit is contained in:
@@ -38,7 +38,7 @@ public class Issue763MultiRepo extends MultiRepoUpdaterTest {
|
||||
|
||||
public void setEnabled(Repo repo, boolean enabled) {
|
||||
ContentValues values = new ContentValues(1);
|
||||
values.put(Schema.RepoTable.Cols.IN_USE, enabled);
|
||||
values.put(Schema.RepoTable.Cols.IN_USE, enabled ? 1 : 0);
|
||||
RepoProvider.Helper.update(context, repo, values);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user