mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
Fix deleting a SubButton not syncing the Drawer.
This commit is contained in:
parent
625eb154cc
commit
17f823b1ed
@ -191,8 +191,11 @@ public class ControlLayout extends FrameLayout
|
|||||||
subButton.parentDrawer.drawerData.buttonProperties.remove(subButton.getProperties());
|
subButton.parentDrawer.drawerData.buttonProperties.remove(subButton.getProperties());
|
||||||
subButton.parentDrawer.buttons.remove(subButton);
|
subButton.parentDrawer.buttons.remove(subButton);
|
||||||
|
|
||||||
|
subButton.parentDrawer.syncButtons();
|
||||||
|
|
||||||
subButton.setVisibility(GONE);
|
subButton.setVisibility(GONE);
|
||||||
removeView(subButton);
|
removeView(subButton);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void saveLayout(String path) throws Exception {
|
public void saveLayout(String path) throws Exception {
|
||||||
|
@ -96,7 +96,7 @@ public class ControlDrawer extends ControlButton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void syncButtons(){
|
public void syncButtons(){
|
||||||
alignButtons();
|
alignButtons();
|
||||||
resizeButtons();
|
resizeButtons();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user