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

Add option to show/hide the icon #32

Merged
merged 2 commits into from
Mar 6, 2017
Merged

Conversation

riclage
Copy link
Contributor

@riclage riclage commented Mar 3, 2017

No description provided.

Copy link
Collaborator

@kpmmmurphy kpmmmurphy left a 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) {
Copy link
Collaborator

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;
Copy link
Collaborator

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;
Copy link
Collaborator

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
@riclage
Copy link
Contributor Author

riclage commented Mar 6, 2017

@kpmmmurphy Thanks for the feedback. I updated the PR.

@kpmmmurphy kpmmmurphy merged commit 5a562c8 into Tapadoo:master Mar 6, 2017
@riclage riclage deleted the show-icon branch March 6, 2017 14:14
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.

2 participants