summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Santiago Seifert <aquilescanta@google.com> 2024-07-23 11:18:17 +0000
committer Santiago Seifert <aquilescanta@google.com> 2024-07-23 11:58:53 +0000
commit5dbfcb28bd85beca10ef3f209aa83a57a865bd37 (patch)
tree3586796fbab6f26281ce3169e5122c2e72ae995a
parent06fe6813c72c7e29c7a766e7bb3e6c66ede29ef4 (diff)
Fix javadoc for TYPE_INT_BOOLEAN
In practice, the only guarantee is that the value is zero if, and only if, the represented boolean is false. Bug: b/205124386 Flag: DOCS_ONLY Test: Presubmit Change-Id: I6cf12449597b048e6feebf803d291b88966a6233
-rw-r--r--core/java/android/util/TypedValue.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/util/TypedValue.java b/core/java/android/util/TypedValue.java
index 330a9fce1b83..9668b6ad1f72 100644
--- a/core/java/android/util/TypedValue.java
+++ b/core/java/android/util/TypedValue.java
@@ -65,10 +65,11 @@ public class TypedValue {
/** The <var>data</var> field holds a number that was
* originally specified in hexadecimal (0xn). */
public static final int TYPE_INT_HEX = 0x11;
- /** The <var>data</var> field holds 0 or 1 that was originally
- * specified as "false" or "true". */
+ /**
+ * {@link #data} holds 0 to represent {@code false}, or a value different from 0 to represent
+ * {@code true}.
+ */
public static final int TYPE_INT_BOOLEAN = 0x12;
-
/** Identifies the start of integer values that were specified as
* color constants (starting with '#'). */
public static final int TYPE_FIRST_COLOR_INT = 0x1c;