set Mo-Fr by default if no opening hours

This commit is contained in:
veliymolfar 2020-06-26 17:30:58 +03:00
parent 2f9d0485be
commit 928c9e60bd

View file

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