Merge pull request #4939 from osmandapp/PaulsBranch

Update AmenityMenuBuilder.java
This commit is contained in:
PaulStets 2018-01-24 12:56:20 +02:00 committed by GitHub
commit df380a26f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -381,9 +381,6 @@ public class AmenityMenuBuilder extends MenuBuilder {
OpeningHoursParser.OpeningHours rs = OpeningHoursParser.parseOpenedHours(amenity.getOpeningHours());
if (rs != null) {
vl = rs.toLocalString();
if (!preferredLang.equals("en")) {
vl = vl.replaceAll("off", view.getContext().getString(R.string.day_off_label));
}
Calendar inst = Calendar.getInstance();
inst.setTimeInMillis(System.currentTimeMillis());
boolean opened = rs.isOpenedForTime(inst);