From c09eda0000e010ffea5e496fe3fc97203f7381aa Mon Sep 17 00:00:00 2001 From: sergosm Date: Fri, 28 Aug 2020 13:16:15 +0300 Subject: [PATCH] Fix #9676 --- .../src/net/osmand/plus/activities/FavoritesTreeFragment.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java b/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java index 696f6cc26c..6228d67569 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java @@ -1025,9 +1025,7 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment implemen name.setText(model.getDisplayName(app), TextView.BufferType.SPANNABLE); name.setTypeface(Typeface.DEFAULT, visible ? Typeface.NORMAL : Typeface.ITALIC); name.setTextColor(getResources().getColor(visible ? enabledColor : disabledColor)); - if (model.isAddressSpecified()) { - addressText.setText(model.getAddress()); - } + addressText.setText(model.isAddressSpecified() ? model.getAddress() : null); int color = visible ? app.getFavorites().getColorWithCategory(model, getResources().getColor(R.color.color_favorite)) : ContextCompat.getColor(app, disabledIconColor);