ComboFragment: display last bolus regardless of age.

(cherry picked from commit 197874e)
This commit is contained in:
Johannes Mockenhaupt 2018-02-07 22:50:40 +01:00
parent 6b36dd27d8
commit 46ea4be4eb
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -264,7 +264,7 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis
// last bolus
Bolus bolus = plugin.getPump().lastBolus;
if (bolus != null && bolus.timestamp + 6 * 60 * 60 * 1000 >= System.currentTimeMillis()) {
if (bolus != null) {
long agoMsc = System.currentTimeMillis() - bolus.timestamp;
double bolusMinAgo = agoMsc / 60d / 1000d;
String unit = MainApp.gs(R.string.treatments_wizard_unit_label);