- changed calls of PumpUtil.setPumpDescription to use enums directly
This commit is contained in:
parent
d205492a7b
commit
e2182528fd
|
@ -136,7 +136,7 @@ public class ComboPlugin extends PluginBase implements PumpInterface, Constraint
|
|||
.description(R.string.description_pump_combo)
|
||||
);
|
||||
ruffyScripter = new RuffyScripter(MainApp.instance().getApplicationContext());
|
||||
PumpUtil.setPumpDescription(pumpDescription, PumpType.getByDescription("Accu-Chek Combo"));
|
||||
PumpUtil.setPumpDescription(pumpDescription, PumpType.AccuChekCombo);
|
||||
}
|
||||
|
||||
public ComboPump getPump() {
|
||||
|
|
|
@ -51,7 +51,7 @@ public class DanaRKoreanPlugin extends AbstractDanaRPlugin {
|
|||
pluginDescription.description(R.string.description_pump_dana_r_korean);
|
||||
|
||||
useExtendedBoluses = SP.getBoolean(R.string.key_danar_useextended, false);
|
||||
PumpUtil.setPumpDescription(pumpDescription, PumpType.getByDescription("DanaR Korean"));
|
||||
PumpUtil.setPumpDescription(pumpDescription, PumpType.DanaRKorean);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -90,7 +90,7 @@ public class DanaRSPlugin extends PluginBase implements PumpInterface, DanaRInte
|
|||
.description(R.string.description_pump_dana_rs)
|
||||
);
|
||||
|
||||
PumpUtil.setPumpDescription(pumpDescription, PumpType.getByDescription("DanaRS"));
|
||||
PumpUtil.setPumpDescription(pumpDescription, PumpType.DanaRS);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -51,7 +51,7 @@ public class DanaRv2Plugin extends AbstractDanaRPlugin {
|
|||
pluginDescription.description(R.string.description_pump_dana_r_v2);
|
||||
|
||||
useExtendedBoluses = false;
|
||||
PumpUtil.setPumpDescription(pumpDescription, PumpType.getByDescription("DanaRv2"));
|
||||
PumpUtil.setPumpDescription(pumpDescription, PumpType.DanaRv2);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -122,7 +122,7 @@ public class InsightPlugin extends PluginBase implements PumpInterface, Constrai
|
|||
.description(R.string.description_pump_insight)
|
||||
);
|
||||
log("InsightPlugin instantiated");
|
||||
PumpUtil.setPumpDescription(pumpDescription, PumpType.getByDescription("Accu-Chek Insight"));
|
||||
PumpUtil.setPumpDescription(pumpDescription, PumpType.AccuChekInsight);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue