diff --git a/app/src/main/java/info/nightscout/androidaps/startupwizard/SWButton.java b/app/src/main/java/info/nightscout/androidaps/startupwizard/SWButton.java index e14723cbfb..f781a9a3c6 100644 --- a/app/src/main/java/info/nightscout/androidaps/startupwizard/SWButton.java +++ b/app/src/main/java/info/nightscout/androidaps/startupwizard/SWButton.java @@ -19,7 +19,7 @@ public class SWButton extends SWItem { super(Type.BUTTON); } - public SWButton option(int buttonText) { + public SWButton text(int buttonText) { this.buttonText = buttonText; return this; } diff --git a/app/src/main/java/info/nightscout/androidaps/startupwizard/SWDefinition.java b/app/src/main/java/info/nightscout/androidaps/startupwizard/SWDefinition.java index d52070387b..6e4cd42f2f 100644 --- a/app/src/main/java/info/nightscout/androidaps/startupwizard/SWDefinition.java +++ b/app/src/main/java/info/nightscout/androidaps/startupwizard/SWDefinition.java @@ -65,7 +65,7 @@ public class SWDefinition { .label(R.string.nsclientinternal_secret_dialogtitle) .comment(R.string.nsclientinternal_secret_dialogmessage)) .add(new SWButton() - .option(R.string.enable_nsclient) + .text(R.string.enable_nsclient) .action(() -> { NSClientPlugin.getPlugin().setPluginEnabled(PluginType.GENERAL, true); NSClientPlugin.getPlugin().setFragmentVisible(PluginType.GENERAL, true);