In RoboBinding there is the annotation DependsOnStateOf
.
When using it in a PresentationModel like this:
@PresentationModel
class GreetingPresentationModel {
String firstname;
String lastname;
//getters and setters for both
@DependsOnStateOf("firstname")
public boolean isLastnameInputEnabled() {
return !TextUtils.isEmpty(firstname);
}
}
This doesn't work. The following binding will be always false and doesn't change.
bind:enabled="{lastnameInputEnabled}"
What's wrong?