disable visible control when plugin is not enabled
This commit is contained in:
parent
fb320968a1
commit
86f5aec0bb
|
@ -205,6 +205,10 @@ public class ConfigBuilderFragment extends Fragment implements FragmentBase {
|
|||
holder.checkboxVisible.setEnabled(false);
|
||||
}
|
||||
|
||||
if (!plugin.isEnabled(type)) {
|
||||
holder.checkboxVisible.setEnabled(false);
|
||||
}
|
||||
|
||||
// Hide enabled control and force enabled plugin if there is only one plugin available
|
||||
if (type == PluginBase.PUMP || type == PluginBase.TREATMENT || type == PluginBase.TEMPBASAL || type == PluginBase.PROFILE)
|
||||
if (pluginList.size() < 2) {
|
||||
|
|
Loading…
Reference in a new issue