removed unnecessary changes

This commit is contained in:
Chumva 2018-05-18 11:45:27 +03:00
parent 58be83e8be
commit 86b057fb00

View file

@ -364,6 +364,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
boolean isText = false; boolean isText = false;
boolean isDescription = false; boolean isDescription = false;
boolean needLinks = !("population".equals(key) boolean needLinks = !("population".equals(key)
|| "service_times".equals(key)
|| "height".equals(key)); || "height".equals(key));
boolean isPhoneNumber = false; boolean isPhoneNumber = false;
boolean isUrl = false; boolean isUrl = false;
@ -417,14 +418,11 @@ public class AmenityMenuBuilder extends MenuBuilder {
} }
} else if (key.startsWith("name:")) { } else if (key.startsWith("name:")) {
continue; continue;
} else if (Amenity.OPENING_HOURS.equals(key) } else if (Amenity.OPENING_HOURS.equals(key)) {
|| Amenity.SERVICE_TIMES.equals(key)) {
iconId = R.drawable.ic_action_time; iconId = R.drawable.ic_action_time;
String openingHours = amenity.getOpeningHours(); collapsableView = getCollapsableTextView(view.getContext(), true, amenity.getOpeningHours());
openingHours = openingHours != null ? openingHours : vl;
collapsableView = getCollapsableTextView(view.getContext(), true, openingHours);
collapsable = true; collapsable = true;
OpeningHoursParser.OpeningHours rs = OpeningHoursParser.parseOpenedHours(openingHours); OpeningHoursParser.OpeningHours rs = OpeningHoursParser.parseOpenedHours(amenity.getOpeningHours());
if (rs != null) { if (rs != null) {
vl = rs.toLocalString(); vl = rs.toLocalString();
Calendar inst = Calendar.getInstance(); Calendar inst = Calendar.getInstance();