creating a subButton will inherit its mother's visual properties

This commit is contained in:
SerpentSpirale 2021-05-12 09:03:57 +02:00
parent c1211f03e9
commit c13eda73e1

View File

@ -73,8 +73,9 @@ public class EditControlDrawerPopup extends EditControlButtonPopup{
@Override
public void onClick(DialogInterface dialogInterface, int i) {
ControlLayout layout = (ControlLayout) drawer.getParent();
layout.addSubButton(drawer, new ControlData());
ControlData controlData = drawerData.properties.clone();
controlData.name = "new";
layout.addSubButton(drawer, controlData);
}
});