mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 23:59:21 -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) {
|
||||
if (mActivity != null) mActivity.isModified = z;
|
||||
}
|
||||
|
@ -13,7 +13,8 @@ public class ControlSubButton extends ControlButton {
|
||||
this.parentDrawer = parentDrawer;
|
||||
|
||||
//Delayed to let the button inflate first
|
||||
new Handler(Looper.getMainLooper()).postDelayed(() -> setVisibility(parentDrawer.areButtonsVisible ? VISIBLE : GONE), 0);
|
||||
if(!layout.getModifiable())
|
||||
new Handler(Looper.getMainLooper()).postDelayed(() -> setVisibility(parentDrawer.areButtonsVisible ? VISIBLE : GONE), 0);
|
||||
|
||||
filterProperties();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user