mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
Fix subButtons not appearing when on edit mode.
This commit is contained in:
parent
2ed45d4b17
commit
a00e03270f
@ -258,6 +258,10 @@ public class ControlLayout extends FrameLayout
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean getModifiable(){
|
||||||
|
return mModifiable;
|
||||||
|
}
|
||||||
|
|
||||||
protected void setModified(boolean z) {
|
protected void setModified(boolean z) {
|
||||||
if (mActivity != null) mActivity.isModified = z;
|
if (mActivity != null) mActivity.isModified = z;
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ public class ControlSubButton extends ControlButton {
|
|||||||
this.parentDrawer = parentDrawer;
|
this.parentDrawer = parentDrawer;
|
||||||
|
|
||||||
//Delayed to let the button inflate first
|
//Delayed to let the button inflate first
|
||||||
|
if(!layout.getModifiable())
|
||||||
new Handler(Looper.getMainLooper()).postDelayed(() -> setVisibility(parentDrawer.areButtonsVisible ? VISIBLE : GONE), 0);
|
new Handler(Looper.getMainLooper()).postDelayed(() -> setVisibility(parentDrawer.areButtonsVisible ? VISIBLE : GONE), 0);
|
||||||
|
|
||||||
filterProperties();
|
filterProperties();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user