1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 03:27:59 +01:00

ParserUtils: fix boolean parser

How could this even happen?

Signed-off-by: Georg Lukas <georg@op-co.de>
This commit is contained in:
Georg Lukas 2018-11-27 18:27:10 +01:00
parent 2900c5ae23
commit 229653af30

View file

@ -141,7 +141,7 @@ public class ParserUtils {
if (valueString == null)
return null;
valueString = valueString.toLowerCase(Locale.US);
return valueString.equals("true") || valueString.equals("0");
return valueString.equals("true") || valueString.equals("1");
}
public static boolean getBooleanAttribute(XmlPullParser parser, String name,