From 3b79bea78407c8c455cf4b053ff2ab5f39122c9d Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 21 Oct 2015 22:49:36 +0200 Subject: [PATCH] Fix opening hours --- OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java index f95a264282..26823f1ff6 100644 --- a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java +++ b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java @@ -727,11 +727,10 @@ public class OpeningHoursParser { } // check if valid final OpeningHoursRule r1 = parseRule(r); - boolean rule = r1 instanceof UnparseableRule; - if (!rule) { - return null; + boolean rule = r1 instanceof BasicOpeningHourRule; + if (rule) { + rs.addRule(r1); } - rs.addRule(r1); } return rs; }