mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +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:
parent
2900c5ae23
commit
229653af30
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ public class ParserUtils {
|
||||||
if (valueString == null)
|
if (valueString == null)
|
||||||
return null;
|
return null;
|
||||||
valueString = valueString.toLowerCase(Locale.US);
|
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,
|
public static boolean getBooleanAttribute(XmlPullParser parser, String name,
|
||||||
|
|
Loading…
Reference in a new issue