mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 07:39:00 -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.buttons.remove(subButton);
|
||||
|
||||
subButton.parentDrawer.syncButtons();
|
||||
|
||||
subButton.setVisibility(GONE);
|
||||
removeView(subButton);
|
||||
|
||||
}
|
||||
|
||||
public void saveLayout(String path) throws Exception {
|
||||
|
@ -96,7 +96,7 @@ public class ControlDrawer extends ControlButton {
|
||||
}
|
||||
}
|
||||
|
||||
private void syncButtons(){
|
||||
public void syncButtons(){
|
||||
alignButtons();
|
||||
resizeButtons();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user