-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove Color.parseColor as we do processColor now
- Loading branch information
Showing
1 changed file
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dcc7a0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this compile?
You need to use int instead of string. and hence call
arguments.getInt
.Also you might double check that you get the correct behavior when the key is null.
dcc7a0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok i'm going to test this now, I hadn't tested I was working on something else. I'll give this my full focus.
dcc7a0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeanregisser it seems I can't do:
even though i marked it as
@Nullable
, do you know how i can set int to null, how come@Nullable
doesn't work?I get:
Is
0
a valid color? if not I can just test 0.dcc7a0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use
Integer
instead which can be null.dcc7a0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 is transparent.
dcc7a0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Way awesome thank you! I actually never did Java before but needed these changes so was just a bunch of copy paste. Learning a lot here thanks!
dcc7a0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeanregisser apparently when I do
options.getInt
and it is null, it is giving me an error "Expected type double but got null". I was able to work around this by passing undefined. But is there a way to makeoptions.getInt
get a null value?options. I tried
options.getInteger` but it says symbol not found:dcc7a0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can check if the key is null
options.isNull(yourKey)
.dcc7a0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! Thanks so much for the super fast reply!
dcc7a0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooowee that was a doozie. Just comitted it. :)