Mo-Fr by default in edit poi osm
This commit is contained in:
parent
985830b0f2
commit
2f9d0485be
2 changed files with 7 additions and 0 deletions
|
@ -886,6 +886,12 @@ public class OpeningHoursParser {
|
||||||
return new TIntArrayList(endTimes);
|
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
|
* 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();
|
BasicOpeningHourRule rule = new BasicOpeningHourRule();
|
||||||
rule.setStartTime(9 * 60);
|
rule.setStartTime(9 * 60);
|
||||||
rule.setEndTime(18 * 60);
|
rule.setEndTime(18 * 60);
|
||||||
|
rule.setDays(new boolean[]{true, true, true, true, true, false, false});
|
||||||
OpeningHoursDaysDialogFragment fragment = OpeningHoursDaysDialogFragment.createInstance(rule, -1);
|
OpeningHoursDaysDialogFragment fragment = OpeningHoursDaysDialogFragment.createInstance(rule, -1);
|
||||||
fragment.show(getChildFragmentManager(), "OpenTimeDialogFragment");
|
fragment.show(getChildFragmentManager(), "OpenTimeDialogFragment");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue