changed isOlderThan(int) to double
This commit is contained in:
parent
f284483500
commit
5e045264d5
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ 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);
|
return diff.get(TimeUnit.DAYS) + " " + MainApp.sResources.getString(R.string.days) + " " + diff.get(TimeUnit.HOURS) + " " + MainApp.sResources.getString(R.string.hours);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isOlderThan(int threshold) {
|
public boolean isOlderThan(double threshold) {
|
||||||
Map<TimeUnit, Long> diff = computeDiff(date, System.currentTimeMillis());
|
Map<TimeUnit, Long> diff = computeDiff(date, System.currentTimeMillis());
|
||||||
if(diff.get(TimeUnit.DAYS) > threshold)
|
if(diff.get(TimeUnit.DAYS) > threshold)
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue