diff --git a/designer-form/src/main/java/com/fr/design/fit/NewJForm.java b/designer-form/src/main/java/com/fr/design/fit/NewJForm.java index 4df8b4386..b8d429ca9 100644 --- a/designer-form/src/main/java/com/fr/design/fit/NewJForm.java +++ b/designer-form/src/main/java/com/fr/design/fit/NewJForm.java @@ -274,10 +274,16 @@ public class NewJForm extends JForm { public UIButton[] createExtraButtons() { UIButton[] extraButtons = super.createExtraButtons(); - switchAction = new SwitchAction(); - return ArrayUtils.addAll(extraButtons, new UIButton[]{switchAction.getToolBarButton()}); + return addAdaptiveSwitchButton(extraButtons); } + private UIButton[] addAdaptiveSwitchButton(UIButton[] extraButtons) { + switchAction = new SwitchAction(); + if (!mobileForm()) { + return ArrayUtils.addAll(extraButtons, new UIButton[]{switchAction.getToolBarButton()}); + } + return extraButtons; + } public boolean isNewJFrom() { return jFormType == null || jFormType.isNewType();