Merge pull request #1257 from jotomo/1254
Fix #1242 double mmol/l conversion.
This commit is contained in:
commit
87de4bce5b
1 changed files with 3 additions and 3 deletions
|
@ -590,7 +590,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
|
|||
pvd.show(manager, "ProfileViewDialog");
|
||||
} else if (item.getTitle().equals(MainApp.gs(R.string.eatingsoon))) {
|
||||
DefaultValueHelper defHelper = new DefaultValueHelper();
|
||||
double target = defHelper.determineEatingSoonTT(profile.getUnits());
|
||||
double target = defHelper.determineEatingSoonTT(Constants.MGDL);
|
||||
TempTarget tempTarget = new TempTarget()
|
||||
.date(System.currentTimeMillis())
|
||||
.duration(defHelper.determineEatingSoonTTDuration())
|
||||
|
@ -601,7 +601,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
|
|||
TreatmentsPlugin.getPlugin().addToHistoryTempTarget(tempTarget);
|
||||
} else if (item.getTitle().equals(MainApp.gs(R.string.activity))) {
|
||||
DefaultValueHelper defHelper = new DefaultValueHelper();
|
||||
double target = defHelper.determineActivityTT(profile.getUnits());
|
||||
double target = defHelper.determineActivityTT(Constants.MGDL);
|
||||
TempTarget tempTarget = new TempTarget()
|
||||
.date(now())
|
||||
.duration(defHelper.determineActivityTTDuration())
|
||||
|
@ -612,7 +612,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
|
|||
TreatmentsPlugin.getPlugin().addToHistoryTempTarget(tempTarget);
|
||||
} else if (item.getTitle().equals(MainApp.gs(R.string.hypo))) {
|
||||
DefaultValueHelper defHelper = new DefaultValueHelper();
|
||||
double target = defHelper.determineHypoTT(profile.getUnits());
|
||||
double target = defHelper.determineHypoTT(Constants.MGDL);
|
||||
TempTarget tempTarget = new TempTarget()
|
||||
.date(now())
|
||||
.duration(defHelper.determineHypoTTDuration())
|
||||
|
|
Loading…
Reference in a new issue