From 331598b7fa15f46f47ab8dd21f15f49e052c34f1 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 29 Jan 2017 19:22:49 +0100 Subject: [PATCH] display danar profile preferences only if selected --- .../java/info/nightscout/androidaps/PreferencesActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java b/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java index dee15b729d..10169a8d51 100644 --- a/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java @@ -98,6 +98,8 @@ public class PreferencesActivity extends PreferenceActivity implements SharedPre DanaRKoreanPlugin danaRKoreanPlugin = (DanaRKoreanPlugin) MainApp.getSpecificPlugin(DanaRKoreanPlugin.class); if (danaRPlugin.isEnabled(PluginBase.PUMP) || danaRKoreanPlugin.isEnabled(PluginBase.PUMP)) { addPreferencesFromResource(R.xml.pref_danar); + } + if (danaRPlugin.isEnabled(PluginBase.PROFILE) || danaRKoreanPlugin.isEnabled(PluginBase.PROFILE)) { addPreferencesFromResource(R.xml.pref_danarprofile); } }