Merge pull request #9333 from osmandapp/default_days_edit_poi

set Mo-Fr by default if no opening hours
This commit is contained in:
vshcherb 2020-06-26 17:40:50 +02:00 committed by GitHub
commit 3bebce7ab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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");
}