Skip to content

Commit

Permalink
Created method, which check state of icon. Method returns true if ico…
Browse files Browse the repository at this point in the history
…n is enabled, otherwise false
  • Loading branch information
milovan92 committed Jan 11, 2017
1 parent 07c45de commit f10e513
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ public void setState(@State int state, boolean animate) {
switchState(animate);
}

/**
* Check state
* @return TRUE if icon is enabled, otherwise FALSE
*/
public boolean isIconEnabled() {
return currentState == ENABLED;
}

/**
* Switches state between values {@link #ENABLED} or {@link #DISABLED}
* with animation
Expand Down

0 comments on commit f10e513

Please sign in to comment.