Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the ability to set the background color #35

Merged
merged 4 commits into from Aug 2, 2016
Merged

Added the ability to set the background color #35

merged 4 commits into from Aug 2, 2016

Conversation

PGMacDesign
Copy link
Contributor

Added 2 methods for setting the background color of the Elastic view. It should take in either an int color or a String and parse the color. If the string is null or the parsing fails, nothing will be set and it will retain the original color

Added 2 methods for setting the background color of the Elastic view. It should take in either an int color or a String and parse the color. If the string is null or the parsing fails, nothing will be set and it will retain the original color
@@ -107,5 +107,33 @@ public void onEnterAnimationFinished() {

// Do further actions if necessary
}


/////////////////////////////////////////////////////////////////////////////
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove that comment, it's not really necessary

@PGMacDesign
Copy link
Contributor Author

Thanks for the tips. Were you wanting me to change the code prior to merge? Or were you just offering advice?

@Tibolte
Copy link
Owner

Tibolte commented Aug 1, 2016

That's better if you change it, it should be quick to do it ;)

Adjusted text and changed catch argument. Omitted an e.printStackTrace() as I was unsure if it was desired. Let me know if you want it implemented.
@PGMacDesign
Copy link
Contributor Author

Updated with said fixes. Let me know if you need anything else changed on there, I will be happy to do it.

* Color.parseColor(string)
*/
public void setBackgroundColor(String passedColor) {
if(passedColor == null){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this if needs a space between itself and the parenthesis (like the rest of the code).

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just missing if (passedColor == null) (adding a white space) and it's good to go.

e.printStackTrace(); under catch for null Strings or bad color parsing strings sent
@Tibolte Tibolte merged commit dbf3e22 into Tibolte:master Aug 2, 2016
F7D added a commit to F7D/ElasticDownload that referenced this pull request May 1, 2018
Added the ability to set the background color

Signed-off-by: f7d <vp7@usa.com>
F7D added a commit to F7D/ElasticDownload that referenced this pull request May 1, 2018
Added the ability to set the background color

Signed-off-by: f7d <vp7@usa.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants