From 2c42bad48dc33c6f99fef18c731f7a49edd91965 Mon Sep 17 00:00:00 2001 From: Roumen Georgiev Date: Wed, 4 Apr 2018 12:22:54 +0300 Subject: [PATCH] change name of threshold to days to clarify --- .../java/info/nightscout/androidaps/db/CareportalEvent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/db/CareportalEvent.java b/app/src/main/java/info/nightscout/androidaps/db/CareportalEvent.java index 643b5d066c..7302475a4e 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/CareportalEvent.java +++ b/app/src/main/java/info/nightscout/androidaps/db/CareportalEvent.java @@ -98,9 +98,9 @@ public class CareportalEvent implements DataPointWithLabelInterface { return diff.get(TimeUnit.DAYS) + " " + MainApp.sResources.getString(R.string.days) + " " + diff.get(TimeUnit.HOURS) + " " + MainApp.sResources.getString(R.string.hours); } - public boolean isOlderThan(double threshold) { + public boolean isOlderThan(double days) { Map diff = computeDiff(date, System.currentTimeMillis()); - if(diff.get(TimeUnit.DAYS) > threshold) + if(diff.get(TimeUnit.DAYS) > days) return true; else return false;