forked from organicmaps/organicmaps
Added final
keywords
Signed-off-by: S. Kozyr <s.trump@gmail.com>
This commit is contained in:
parent
662de4858b
commit
c14824fedf
1 changed files with 5 additions and 5 deletions
|
@ -40,22 +40,22 @@ public class PlaceOpeningHoursAdapter extends RecyclerView.Adapter<PlaceOpeningH
|
|||
// Timetables array contains only working days. We need to fill non-working gaps.
|
||||
for (int i = 0; i < weekDays.size(); i++)
|
||||
{
|
||||
int weekDay = weekDays.get(i);
|
||||
final int weekDay = weekDays.get(i);
|
||||
|
||||
Timetable tt = findScheduleForWeekDay(timetables, weekDay);
|
||||
final Timetable tt = findScheduleForWeekDay(timetables, weekDay);
|
||||
if (tt != null)
|
||||
{
|
||||
int startWeekDay = weekDays.get(i);
|
||||
final int startWeekDay = weekDays.get(i);
|
||||
while (i < weekDays.size() && tt.containsWeekday(weekDays.get(i)))
|
||||
i++;
|
||||
|
||||
i--;
|
||||
int endWeekDay = weekDays.get(i);
|
||||
final int endWeekDay = weekDays.get(i);
|
||||
scheduleData.add(new WeekScheduleData(startWeekDay, endWeekDay, tt));
|
||||
}
|
||||
else
|
||||
{
|
||||
int startWeekDay = weekDays.get(i);
|
||||
final int startWeekDay = weekDays.get(i);
|
||||
// Search next working day in timetables.
|
||||
while (i + 1 < weekDays.size())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue