hide danar profile option when pump disabled
This commit is contained in:
parent
609f99dc1c
commit
6c9c0d8223
|
@ -119,7 +119,7 @@ public class DanaRPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabled(int type) {
|
public boolean isEnabled(int type) {
|
||||||
if (type == PluginBase.PROFILE) return fragmentProfileEnabled;
|
if (type == PluginBase.PROFILE) return fragmentProfileEnabled && fragmentPumpEnabled;
|
||||||
else if (type == PluginBase.PUMP) return fragmentPumpEnabled;
|
else if (type == PluginBase.PUMP) return fragmentPumpEnabled;
|
||||||
else if (type == PluginBase.CONSTRAINTS) return fragmentPumpEnabled;
|
else if (type == PluginBase.CONSTRAINTS) return fragmentPumpEnabled;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue