Merge pull request #9333 from osmandapp/default_days_edit_poi
set Mo-Fr by default if no opening hours
This commit is contained in:
commit
3bebce7ab2
1 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,9 @@ 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});
|
if (mOpeningHoursAdapter.openingHours.getRules().isEmpty()){
|
||||||
|
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