- changed calls of PumpUtil.setPumpDescription to use enums directly

This commit is contained in:
Andy Rozman 2018-08-30 22:03:09 +01:00
parent d205492a7b
commit e2182528fd
5 changed files with 5 additions and 5 deletions

View file

@ -136,7 +136,7 @@ public class ComboPlugin extends PluginBase implements PumpInterface, Constraint
.description(R.string.description_pump_combo) .description(R.string.description_pump_combo)
); );
ruffyScripter = new RuffyScripter(MainApp.instance().getApplicationContext()); ruffyScripter = new RuffyScripter(MainApp.instance().getApplicationContext());
PumpUtil.setPumpDescription(pumpDescription, PumpType.getByDescription("Accu-Chek Combo")); PumpUtil.setPumpDescription(pumpDescription, PumpType.AccuChekCombo);
} }
public ComboPump getPump() { public ComboPump getPump() {

View file

@ -51,7 +51,7 @@ public class DanaRKoreanPlugin extends AbstractDanaRPlugin {
pluginDescription.description(R.string.description_pump_dana_r_korean); pluginDescription.description(R.string.description_pump_dana_r_korean);
useExtendedBoluses = SP.getBoolean(R.string.key_danar_useextended, false); useExtendedBoluses = SP.getBoolean(R.string.key_danar_useextended, false);
PumpUtil.setPumpDescription(pumpDescription, PumpType.getByDescription("DanaR Korean")); PumpUtil.setPumpDescription(pumpDescription, PumpType.DanaRKorean);
} }
@Override @Override

View file

@ -90,7 +90,7 @@ public class DanaRSPlugin extends PluginBase implements PumpInterface, DanaRInte
.description(R.string.description_pump_dana_rs) .description(R.string.description_pump_dana_rs)
); );
PumpUtil.setPumpDescription(pumpDescription, PumpType.getByDescription("DanaRS")); PumpUtil.setPumpDescription(pumpDescription, PumpType.DanaRS);
} }
@Override @Override

View file

@ -51,7 +51,7 @@ public class DanaRv2Plugin extends AbstractDanaRPlugin {
pluginDescription.description(R.string.description_pump_dana_r_v2); pluginDescription.description(R.string.description_pump_dana_r_v2);
useExtendedBoluses = false; useExtendedBoluses = false;
PumpUtil.setPumpDescription(pumpDescription, PumpType.getByDescription("DanaRv2")); PumpUtil.setPumpDescription(pumpDescription, PumpType.DanaRv2);
} }
@Override @Override

View file

@ -122,7 +122,7 @@ public class InsightPlugin extends PluginBase implements PumpInterface, Constrai
.description(R.string.description_pump_insight) .description(R.string.description_pump_insight)
); );
log("InsightPlugin instantiated"); log("InsightPlugin instantiated");
PumpUtil.setPumpDescription(pumpDescription, PumpType.getByDescription("Accu-Chek Insight")); PumpUtil.setPumpDescription(pumpDescription, PumpType.AccuChekInsight);
} }