From 344a0673fe6c63ef2b05a0e9b4cc2efd2fa94248 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Thu, 24 Dec 2015 10:26:39 +0300 Subject: [PATCH] Fix - https://github.com/osmandapp/Osmand/issues/2074 --- .../osmand/plus/mapcontextmenu/MapContextMenuFragment.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java index 3bd4e7c273..6a3b8391f1 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java @@ -349,8 +349,10 @@ public class MapContextMenuFragment extends Fragment implements DownloadEvents { AndroidUtils.setTextPrimaryColor(getMapActivity(), (TextView) view.findViewById(R.id.context_menu_line1), nightMode); - AndroidUtils.setTextSecondaryColor(getMapActivity(), - (TextView) view.findViewById(R.id.context_menu_line2), nightMode); + View menuLine2 = view.findViewById(R.id.context_menu_line2); + if (menuLine2 != null) { + AndroidUtils.setTextSecondaryColor(getMapActivity(), (TextView) menuLine2, nightMode); + } ((Button) view.findViewById(R.id.title_button_top_right)) .setTextColor(!nightMode ? getResources().getColor(R.color.map_widget_blue) : getResources().getColor(R.color.osmand_orange)); AndroidUtils.setTextSecondaryColor(getMapActivity(),