Update AmenityMenuBuilder.java

This commit is contained in:
PaulStets 2018-01-24 12:55:54 +02:00 committed by GitHub
parent 3eb7dd5165
commit f3adf238d7
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);