display danar profile preferences only if selected

This commit is contained in:
Milos Kozak 2017-01-29 19:22:49 +01:00
parent e608bf4095
commit 331598b7fa

View file

@ -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);
}
}