Commit 2fbd0882 authored by Robert Hitt's avatar Robert Hitt

Added SPECIAL text when facility opens tomorrow

parent 7b5db44f
Pipeline #1275 failed with stages
in 3 minutes and 44 seconds
...@@ -271,14 +271,17 @@ public class MainPresenter { ...@@ -271,14 +271,17 @@ public class MainPresenter {
} }
// Else return the opening time of the next day // Else return the opening time of the next day
int nextDay = findNextDay(openTimesList, currentDay); int nextDay = findNextDay(openTimesList, currentDay);
String nextDayStr = FacilityPresenter.parseIntToDay(nextDay);
String openingTime = getCurrentStartTime(openTimesList, nextDay); String openingTime = getCurrentStartTime(openTimesList, nextDay);
openingTime = FacilityPresenter.parseTo12HourTime(openingTime); openingTime = FacilityPresenter.parseTo12HourTime(openingTime);
durationMessage = "Opens next on " + nextDayStr + " at " + openingTime; if(nextDay == (currentDay+1)%7) {
durationMessage = "Opens tomorrow at " + openingTime;
} else {
String nextDayStr = FacilityPresenter.parseIntToDay(nextDay);
durationMessage = "Opens next on " + nextDayStr + " at " + openingTime;
}
return durationMessage; return durationMessage;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment