diff --git a/OsmAnd-java/src/main/java/net/osmand/util/OpeningHoursParser.java b/OsmAnd-java/src/main/java/net/osmand/util/OpeningHoursParser.java index 780713b3c3..01fee5cd9e 100644 --- a/OsmAnd-java/src/main/java/net/osmand/util/OpeningHoursParser.java +++ b/OsmAnd-java/src/main/java/net/osmand/util/OpeningHoursParser.java @@ -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 * diff --git a/OsmAnd/src/net/osmand/plus/osmedit/BasicEditPoiFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/BasicEditPoiFragment.java index dcf4846f7f..d2d34785e0 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/BasicEditPoiFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/BasicEditPoiFragment.java @@ -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"); }