From d2b9d2f31463916c1c98ea4c43c14dc27b50c94b Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Thu, 31 Aug 2017 16:08:42 -0700 Subject: [PATCH] docs: Fix documentation typo CPd from master so we can update the website. Test: make ds-docs Bug: 65213121 Change-Id: I5bfc7074a42ec0ef5cd624b0bb72234e072684d3 (cherry picked from commit d4012d6505c8b5368ee4607d54fb98d0a96ec136) --- graphics/java/android/graphics/Color.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/java/android/graphics/Color.java b/graphics/java/android/graphics/Color.java index bdd828fd5127c..c4bf9d3123bfd 100644 --- a/graphics/java/android/graphics/Color.java +++ b/graphics/java/android/graphics/Color.java @@ -73,7 +73,7 @@ import java.util.function.DoubleUnaryOperator; *

Encoding

*

The four components of a color int are encoded in the following way:

*
- * int color = (A & 0xff) << 24 | (R & 0xff) << 16 | (G & 0xff) << 16 | (B & 0xff);
+ * int color = (A & 0xff) << 24 | (R & 0xff) << 16 | (G & 0xff) << 8 | (B & 0xff);
  * 
* *

Because of this encoding, color ints can easily be described as an integer