From ddd707eb3e5ca45e635eefba0c56bb71e75166bb Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Sat, 14 Nov 2015 10:20:24 +0300 Subject: [PATCH] Fix osm bug context menu header --- OsmAnd/res/layout/map_context_menu_fragment.xml | 2 ++ OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/res/layout/map_context_menu_fragment.xml b/OsmAnd/res/layout/map_context_menu_fragment.xml index 87ea8afe29..2fa6927b18 100644 --- a/OsmAnd/res/layout/map_context_menu_fragment.xml +++ b/OsmAnd/res/layout/map_context_menu_fragment.xml @@ -74,6 +74,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/search_address_building" + android:maxLines="8" + android:ellipsize="end" android:textColor="?android:textColorPrimary" android:textSize="@dimen/default_list_text_size_large"/> diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java index 3ec4e7c670..09d1bd4b5c 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java @@ -595,7 +595,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider description = comments.get(0); typeName = sb.toString(); } - if (description != null) { + if (description != null && description.length() < 100) { if (comments.size() > 0) { comments.remove(0); }