Fix some warnings / simplify a bit.
This commit is contained in:
parent
97d0140614
commit
59c7dbef27
5 changed files with 5 additions and 5 deletions
|
@ -49,7 +49,7 @@ public class InsulinFastactingFragment extends Fragment {
|
||||||
private void updateGUI() {
|
private void updateGUI() {
|
||||||
insulinName.setText(insulinFastactingPlugin.getFriendlyName());
|
insulinName.setText(insulinFastactingPlugin.getFriendlyName());
|
||||||
insulinComment.setText(insulinFastactingPlugin.getComment());
|
insulinComment.setText(insulinFastactingPlugin.getComment());
|
||||||
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + new Double(insulinFastactingPlugin.getDia()).toString() + "h");
|
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + Double.toString(insulinFastactingPlugin.getDia()) + "h");
|
||||||
insulinGraph.show(insulinFastactingPlugin);
|
insulinGraph.show(insulinFastactingPlugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ public class InsulinFastactingProlongedFragment extends Fragment {
|
||||||
private void updateGUI() {
|
private void updateGUI() {
|
||||||
insulinName.setText(insulinFastactingProlongedPlugin.getFriendlyName());
|
insulinName.setText(insulinFastactingProlongedPlugin.getFriendlyName());
|
||||||
insulinComment.setText(insulinFastactingProlongedPlugin.getComment());
|
insulinComment.setText(insulinFastactingProlongedPlugin.getComment());
|
||||||
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + new Double(insulinFastactingProlongedPlugin.getDia()).toString() + "h");
|
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + Double.toString(insulinFastactingProlongedPlugin.getDia()) + "h");
|
||||||
insulinGraph.show(insulinFastactingProlongedPlugin);
|
insulinGraph.show(insulinFastactingProlongedPlugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class InsulinOrefFreePeakFragment extends Fragment {
|
||||||
private void updateGUI() {
|
private void updateGUI() {
|
||||||
insulinName.setText(insulinPlugin.getFriendlyName());
|
insulinName.setText(insulinPlugin.getFriendlyName());
|
||||||
insulinComment.setText(insulinPlugin.getComment());
|
insulinComment.setText(insulinPlugin.getComment());
|
||||||
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + new Double(insulinPlugin.getDia()).toString() + "h");
|
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + Double.toString(insulinPlugin.getDia()) + "h");
|
||||||
insulinGraph.show(insulinPlugin);
|
insulinGraph.show(insulinPlugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class InsulinOrefRapidActingFragment extends Fragment {
|
||||||
private void updateGUI() {
|
private void updateGUI() {
|
||||||
insulinName.setText(insulinPlugin.getFriendlyName());
|
insulinName.setText(insulinPlugin.getFriendlyName());
|
||||||
insulinComment.setText(insulinPlugin.getComment());
|
insulinComment.setText(insulinPlugin.getComment());
|
||||||
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + new Double(insulinPlugin.getDia()).toString() + "h");
|
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + Double.toString(insulinPlugin.getDia()) + "h");
|
||||||
insulinGraph.show(insulinPlugin);
|
insulinGraph.show(insulinPlugin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class InsulinOrefUltraRapidActingFragment extends Fragment {
|
||||||
private void updateGUI() {
|
private void updateGUI() {
|
||||||
insulinName.setText(insulinPlugin.getFriendlyName());
|
insulinName.setText(insulinPlugin.getFriendlyName());
|
||||||
insulinComment.setText(insulinPlugin.getComment());
|
insulinComment.setText(insulinPlugin.getComment());
|
||||||
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + new Double(insulinPlugin.getDia()).toString() + "h");
|
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + Double.toString(insulinPlugin.getDia()) + "h");
|
||||||
insulinGraph.show(insulinPlugin);
|
insulinGraph.show(insulinPlugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue