Fix deleting Drawer not deleting its children

This commit is contained in:
SerpentSpirale 2021-07-30 14:36:27 +02:00
parent ce6299accf
commit 625eb154cc

View File

@ -176,6 +176,10 @@ public class ControlLayout extends FrameLayout
}
public void removeControlDrawer(ControlDrawer controlDrawer){
for(ControlSubButton subButton : controlDrawer.buttons){
subButton.setVisibility(GONE);
removeView(subButton);
}
mLayout.mDrawerDataList.remove(controlDrawer.getDrawerData());
controlDrawer.setVisibility(GONE);
removeView(controlDrawer);