Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
Tweaking code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderEggers committed Mar 18, 2019
1 parent f6efbd4 commit fb66f49
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions action/src/main/java/archtree/action/Action.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,14 @@ abstract class Action<T> {
}

fun notifyClickConditionChanged() {
listeners.forEach {
it.onClickConditionChanged(this)
}
listeners.forEach { it.onClickConditionChanged(this) }
}

fun notifyLongClickConditionChanged() {
listeners.forEach {
it.onLongClickConditionChanged(this)
}
listeners.forEach { it.onLongClickConditionChanged(this) }
}

fun notifyEnabledConditionChanged() {
listeners.forEach {
it.onEnabledConditionChanged(this)
}
listeners.forEach { it.onEnabledConditionChanged(this) }
}
}

0 comments on commit fb66f49

Please sign in to comment.