OSDN Git Service

docs: Clarified behavior of TypedArray.getBoolean()
authorAndrew Solovay <asolovay@google.com>
Fri, 1 Nov 2019 22:19:04 +0000 (22:19 +0000)
committerAndrew Solovay <asolovay@google.com>
Fri, 1 Nov 2019 23:07:39 +0000 (16:07 -0700)
commitee07a8cadbdd2bcacd0185c07cbcfd035afda3af
tree6a904fadbb13fd42ad725967df57703b3d64c6f9
parent7186df9e6fbc28fdc5239d330bb6317e0c536628
docs: Clarified behavior of TypedArray.getBoolean()

Doc currently says "The method will return whether [the attribute] is equal to zero", which could be read as "returns true if the attribute is zero", which is incorrect. Rephrased as: "...returns false if the attribute is equal to zero, and true otherwise."

Change-Id: Ie7d763ac2784ecc3a7fb522b4fa583ec8d2644d4
BUG: 143049875
Test: make ds-docs
core/java/android/content/res/TypedArray.java