use correct number format

This commit is contained in:
Markus M. May 2018-05-01 23:34:40 +02:00
parent de92125967
commit a46b038381

View file

@ -204,7 +204,7 @@ public class ObjectivesFragment extends SubscriberFragment {
return 1;
} else if (objectiveStartedTime > 0 && !enableFakeValue
&& objectiveAccomplishedTime == 0
&& !(objectiveStartedTime + durationInDays * 24 * 60 * 60 * 1000 < now && requirementsMet)) {
&& !(objectiveStartedTime + (long)durationInDays * 24 * 60 * 60 * 1000 < now && requirementsMet)) {
return 2;
} else if (objectiveAccomplishedTime == 0) {
return 3;