Merge pull request #9302 from osmandapp/default_days_edit_poi
Mo-Fr by default in edit poi osm
This commit is contained in:
commit
d5f506f4ad
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue