Mo-Fr by default in edit poi osm

This commit is contained in:
veliymolfar 2020-06-23 19:09:58 +03:00
parent 985830b0f2
commit 2f9d0485be
2 changed files with 7 additions and 0 deletions

View file

@ -886,6 +886,12 @@ public class OpeningHoursParser {
return new TIntArrayList(endTimes);
}
public void setDays(boolean[] days) {
if (this.days.length == days.length) {
this.days = days;
}
}
/**
* Check if the weekday of time "cal" is part of this rule
*

View file

@ -118,6 +118,7 @@ public class BasicEditPoiFragment extends BaseOsmAndFragment
BasicOpeningHourRule rule = new BasicOpeningHourRule();
rule.setStartTime(9 * 60);
rule.setEndTime(18 * 60);
rule.setDays(new boolean[]{true, true, true, true, true, false, false});
OpeningHoursDaysDialogFragment fragment = OpeningHoursDaysDialogFragment.createInstance(rule, -1);
fragment.show(getChildFragmentManager(), "OpenTimeDialogFragment");
}