Merge pull request #9712 from osmandapp/import_addresses_wrong_assigned
Fix #9676
This commit is contained in:
commit
f5548b9c73
1 changed files with 1 additions and 3 deletions
|
@ -1025,9 +1025,7 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment implemen
|
||||||
name.setText(model.getDisplayName(app), TextView.BufferType.SPANNABLE);
|
name.setText(model.getDisplayName(app), TextView.BufferType.SPANNABLE);
|
||||||
name.setTypeface(Typeface.DEFAULT, visible ? Typeface.NORMAL : Typeface.ITALIC);
|
name.setTypeface(Typeface.DEFAULT, visible ? Typeface.NORMAL : Typeface.ITALIC);
|
||||||
name.setTextColor(getResources().getColor(visible ? enabledColor : disabledColor));
|
name.setTextColor(getResources().getColor(visible ? enabledColor : disabledColor));
|
||||||
if (model.isAddressSpecified()) {
|
addressText.setText(model.isAddressSpecified() ? model.getAddress() : null);
|
||||||
addressText.setText(model.getAddress());
|
|
||||||
}
|
|
||||||
int color = visible
|
int color = visible
|
||||||
? app.getFavorites().getColorWithCategory(model, getResources().getColor(R.color.color_favorite))
|
? app.getFavorites().getColorWithCategory(model, getResources().getColor(R.color.color_favorite))
|
||||||
: ContextCompat.getColor(app, disabledIconColor);
|
: ContextCompat.getColor(app, disabledIconColor);
|
||||||
|
|
Loading…
Reference in a new issue