Update ControlDirection.java
This commit is contained in:
parent
ce5e6719a1
commit
dd0cf5525f
|
@ -153,6 +153,9 @@ public class ControlDirection extends RelativeLayout implements CustomView {
|
||||||
|
|
||||||
post(() -> {
|
post(() -> {
|
||||||
notifyData();
|
notifyData();
|
||||||
|
if (notifyListener == null || dataChangeListener == null || boundaryListener == null || visibilityListener == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (menu != null) {
|
if (menu != null) {
|
||||||
menu.editModeProperty().addListener(notifyListener);
|
menu.editModeProperty().addListener(notifyListener);
|
||||||
}
|
}
|
||||||
|
@ -195,9 +198,6 @@ public class ControlDirection extends RelativeLayout implements CustomView {
|
||||||
alphaListener = null;
|
alphaListener = null;
|
||||||
|
|
||||||
post(() -> {
|
post(() -> {
|
||||||
if (notifyListener == null || dataChangeListener == null || boundaryListener == null || visibilityListener == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
notifyData();
|
notifyData();
|
||||||
dataProperty.addListener(dataChangeListener);
|
dataProperty.addListener(dataChangeListener);
|
||||||
getData().addListener(notifyListener);
|
getData().addListener(notifyListener);
|
||||||
|
|
Loading…
Reference in New Issue