From c8c2f039895f134e937cfa52cc6cf60090bd4fe1 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Fri, 2 Feb 2018 14:46:49 +0300 Subject: [PATCH] Fix opening hours UI --- .../src/net/osmand/util/OpeningHoursParser.java | 4 ++-- OsmAnd/res/layout/map_context_menu_fragment.xml | 9 +++++++++ .../osmand/plus/mapcontextmenu/MapContextMenu.java | 2 +- .../mapcontextmenu/MapContextMenuFragment.java | 7 +++++-- .../osmand/plus/mapcontextmenu/MenuController.java | 14 ++++++++++++-- .../controllers/MapDataMenuController.java | 2 +- .../osmand/plus/osmedit/EditPOIMenuController.java | 2 +- .../ParkingPositionMenuController.java | 2 +- 8 files changed, 32 insertions(+), 10 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java index 870ab9b01f..3762dade8b 100644 --- a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java +++ b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java @@ -1016,7 +1016,7 @@ public class OpeningHoursParser { if (b.charAt(b.length() - 1) != ' ') { b.append(" "); } - b.append("(").append(comment).append(")"); + b.append("- ").append(comment); } else { b.append(comment); } @@ -1136,7 +1136,7 @@ public class OpeningHoursParser { } String res = sb.toString(); if (res.length() > 0 && !Algorithms.isEmpty(comment)) { - res += " (" + comment + ")"; + res += " - " + comment; } return res; } diff --git a/OsmAnd/res/layout/map_context_menu_fragment.xml b/OsmAnd/res/layout/map_context_menu_fragment.xml index 46964956a4..60d0136612 100644 --- a/OsmAnd/res/layout/map_context_menu_fragment.xml +++ b/OsmAnd/res/layout/map_context_menu_fragment.xml @@ -108,6 +108,15 @@ osmand:typeface="@string/font_roboto_medium" tools:text="Museum"/> + +