set Mo-Fr by default if no opening hours
This commit is contained in:
parent
2f9d0485be
commit
928c9e60bd
1 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,9 @@ 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});
|
||||
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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue