Merge "docs: Clarified behavior of TypedArray.getBoolean()" into qt-dev

am: de21a30cda

Change-Id: Ib53cd5a940756e4d3448fa4dc280a87bc0c06f58
This commit is contained in:
Andrew Solovay
2019-11-07 17:29:10 -08:00
committed by android-build-merger

View File

@@ -360,8 +360,9 @@ public class TypedArray {
/**
* Retrieve the boolean value for the attribute at <var>index</var>.
* <p>
* If the attribute is an integer value, this method will return whether
* it is equal to zero. If the attribute is not a boolean or integer value,
* If the attribute is an integer value, this method returns false if the
* attribute is equal to zero, and true otherwise.
* If the attribute is not a boolean or integer value,
* this method will attempt to coerce it to an integer using
* {@link Integer#decode(String)} and return whether it is equal to zero.
*