Skip to content

Commit

Permalink
Merge pull request zagum#2 from milovan92/state_checker
Browse files Browse the repository at this point in the history
Created method, which check state of icon.
  • Loading branch information
Zagumennyi Evgenii committed Jan 11, 2017
2 parents 07c45de + f10e513 commit 3dcc326
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 3dcc326

Please sign in to comment.