This commit is contained in:
Victor Shcherb 2017-04-04 19:34:22 +02:00
parent b992939053
commit a92550e1ca

View file

@ -214,7 +214,8 @@ public class BasicEditPoiFragment extends BaseOsmAndFragment
if (!data.isInEdit()) {
String openingHoursString = openingHours.toString();
if (!TextUtils.isEmpty(openingHoursString)) {
if(!OpeningHoursParser.parseOpenedHoursHandleErrors(openingHours.getOriginal()).toString().equals(openingHoursString)) {
if(openingHours.getOriginal() == null ||
!OpeningHoursParser.parseOpenedHoursHandleErrors(openingHours.getOriginal()).toString().equals(openingHoursString)) {
data.putTag(OSMSettings.OSMTagKey.OPENING_HOURS.getValue(),
openingHoursString);
}