From 87055bef0beccbacc1c4fb02d546b8a6685ff449 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 10 Sep 2016 15:37:37 +0200 Subject: [PATCH] show danar prefs only if pump is enabled --- .../java/info/nightscout/androidaps/PreferencesActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java b/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java index 65ea26394c..521ced16d3 100644 --- a/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java @@ -87,9 +87,9 @@ public class PreferencesActivity extends PreferenceActivity implements SharedPre addPreferencesFromResource(R.xml.pref_openapsma); addPreferencesFromResource(R.xml.pref_nightscout); if (Config.DANAR) { - addPreferencesFromResource(R.xml.pref_danar); DanaRPlugin danaRPlugin = (DanaRPlugin) MainApp.getSpecificPlugin(DanaRPlugin.class); if (danaRPlugin.isEnabled(PluginBase.PUMP)) { + addPreferencesFromResource(R.xml.pref_danar); addPreferencesFromResource(R.xml.pref_danarprofile); } }