Skip to content

Commit

Permalink
1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
apikyanrobert committed Apr 20, 2019
1 parent 4ea1360 commit bbf3dae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ private void attrDistributeEvenly(TypedArray typedArray) {
}

private void obtainColorAttr(TypedArray typedArray, int attr, Consumer<Integer> colorConsumer) {
int color = typedArray.getColor(attr, -1);
if (color != -1) {
int color = typedArray.getColor(attr, -2); // -1 is white
if (color != -2) {
colorConsumer.apply(color);
}
}
Expand Down

0 comments on commit bbf3dae

Please sign in to comment.