From bcc45207eb770ee57d7bea779be482d99c780f65 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Wed, 26 Jun 2019 14:21:19 +0300 Subject: [PATCH] fix - Route Preparation > Application profiles > Manage button color/style --- OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java b/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java index 5030655efc..9017a09ae5 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java +++ b/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java @@ -128,7 +128,10 @@ public class ProfileMenuAdapter extends RecyclerView.Adapter holder.descr.setVisibility(View.GONE); holder.switcher.setVisibility(View.GONE); holder.menuIcon.setVisibility(View.GONE); - holder.title.setTextColor(app.getResources().getColor(selectedIconColorRes)); + holder.title.setTextColor(app.getResources().getColor( + isNightMode(app) + ? R.color.active_buttons_and_links_dark + : R.color.active_buttons_and_links_light)); holder.title.setText(bottomButtonText); } }