-
Notifications
You must be signed in to change notification settings - Fork 634
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
Add option to show/hide the icon #32
Conversation
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.
Hi Riclage - almost good to merge. Don't forget to update the version in the build.gradle, and the CHANGELOG!
@@ -176,7 +178,7 @@ public void onAnimationStart(final Animation animation) { | |||
@Override | |||
public void onAnimationEnd(final Animation animation) { | |||
//Start the Icon Animation once the Alert is settled | |||
if (enableIconPulse) { | |||
if (enableIconPulse && showIcon) { |
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.
Update here to check the visibility of the icon, instead of using a boolean flag.
if (enableIconPulse && ivIcon.getVisibility() == VISIBLE) {}
* @param showIcon True to show the icon, false otherwise | ||
*/ | ||
public void showIcon(final boolean showIcon) { | ||
this.showIcon = showIcon; |
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.
Remove.
@@ -55,6 +55,8 @@ | |||
private boolean enableIconPulse = true; | |||
private boolean enableInfiniteDuration; | |||
|
|||
private boolean showIcon = true; |
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.
Remove.
* Update CHANGELOG and version
@kpmmmurphy Thanks for the feedback. I updated the PR. |
No description provided.