Skip to content

Commit

Permalink
fix(android): boolean query arg are inversed
Browse files Browse the repository at this point in the history
The Android code convert a true boolean to `0` and a false one to `1`.

fix #74
  • Loading branch information
craftzdog committed Feb 26, 2020
1 parent b72ac8d commit f552a21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ private static String[] convertParamsToStringArray(ReadableArray paramArray) {
String unescaped = unescapeBlob(paramArray.getString(i));
res[i] = unescaped;
} else if (type == ReadableType.Boolean) {
res[i] = paramArray.getBoolean(i) ? "0" : "1";
res[i] = paramArray.getBoolean(i) ? "1" : "0";
} else if (type == ReadableType.Null) {
res[i] = "NULL";
} else if (type == ReadableType.Number) {
Expand Down

0 comments on commit f552a21

Please sign in to comment.