From 91f3db782d38606397407a6f6d3e59f9b039b94e Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Fri, 4 May 2018 10:20:22 +0200 Subject: [PATCH] SWButton rename option to text --- .../java/info/nightscout/androidaps/startupwizard/SWButton.java | 2 +- .../info/nightscout/androidaps/startupwizard/SWDefinition.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);