Skip to content

Instantly share code, notes, and snippets.

@varundwarkani
Created June 20, 2021 10:57
Show Gist options
  • Save varundwarkani/b08ddf268d5bd85726773e455a44eb00 to your computer and use it in GitHub Desktop.
Save varundwarkani/b08ddf268d5bd85726773e455a44eb00 to your computer and use it in GitHub Desktop.
public class RecordingPositionUIState extends BaseObservable {
@Bindable
private Boolean left = false;
@Bindable
private Boolean center = false;
@Bindable
private Boolean right = false;
public Boolean getLeft() {
return left;
}
public void setLeft(Boolean left) {
if (left != this.left) {
this.left = left;
notifyPropertyChanged(BR.left);
}
}
public Boolean getCenter() {
return center;
}
public void setCenter(Boolean center) {
if (center != this.center) {
this.center = center;
notifyPropertyChanged(BR.center);
}
}
public Boolean getRight() {
return right;
}
public void setRight(Boolean right) {
if (right != this.right) {
this.right = right;
notifyPropertyChanged(BR.right);
}
}
public void refreshData() {
setLeft(false);
setRight(false);
setCenter(false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment