Fix deleting a SubButton not syncing the Drawer.

This commit is contained in:
SerpentSpirale 2021-07-30 14:38:12 +02:00
parent 625eb154cc
commit 17f823b1ed
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -96,7 +96,7 @@ public class ControlDrawer extends ControlButton {
} }
} }
private void syncButtons(){ public void syncButtons(){
alignButtons(); alignButtons();
resizeButtons(); resizeButtons();
} }