fun setSelected(selected: Boolean, notifyListener: Boolean = true): Unit (source)
Changes the selected state of the action.
selected - The new selected state
notifyListener - If true (default) the listener will be notified about a state change.