lib/android/axml_parser.rb in ruby_apk-0.5.0 vs lib/android/axml_parser.rb in ruby_apk-0.5.1
- old
+ new
@@ -165,10 +165,10 @@
when VAL_TYPE_INT_DEC
value = val
when VAL_TYPE_INT_HEX
value = "%#x" % val
when VAL_TYPE_INT_BOOLEAN
- value = val != 0xFFFFFFFE ? true : false # ugh! is it ok??
+ value = ((val != 0xFFFFFFFF) || (val==1)) ? true : false
else
value = "[%#x, flag=%#x]" % [val, flags]
end
end
end