diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index 9d7ce614d5..db9da3a1d5 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -348,5 +348,7 @@ #c66545 #f2f2f2 #536dfe + #536dfe + #d28521 \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java index 072e37214a..20f5dafe8a 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java @@ -10,6 +10,7 @@ import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.AsyncTask; import android.support.annotation.NonNull; +import android.support.v4.content.ContextCompat; import android.support.v7.view.ContextThemeWrapper; import android.text.ClipboardManager; import android.text.TextUtils; @@ -480,7 +481,7 @@ public class MenuBuilder { textView.setTextColor(app.getResources().getColor(light ? R.color.ctx_menu_bottom_view_text_color_light : R.color.ctx_menu_bottom_view_text_color_dark)); if (isUrl) { - textView.setTextColor(textView.getLinkTextColors()); + textView.setTextColor(ContextCompat.getColor(view.getContext(), light ? R.color.ctx_menu_bottom_view_url_color_light : R.color.ctx_menu_bottom_view_url_color_dark)); } else if (needLinks) { textView.setAutoLinkMask(Linkify.ALL); textView.setLinksClickable(true);