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