mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Removed No description label
This commit is contained in:
parent
c00f755492
commit
21e54ef3d2
1 changed files with 3 additions and 1 deletions
|
|
@ -44,8 +44,10 @@ class PlaceRenderer extends Renderer<Place> {
|
||||||
Place place = getContent();
|
Place place = getContent();
|
||||||
tvName.setText(place.name);
|
tvName.setText(place.name);
|
||||||
String descriptionText = place.getLongDescription();
|
String descriptionText = place.getLongDescription();
|
||||||
|
tvDesc.setVisibility(View.VISIBLE);
|
||||||
if (descriptionText.equals("?")) {
|
if (descriptionText.equals("?")) {
|
||||||
descriptionText = "";
|
descriptionText = getContext().getString(R.string.no_description_found);
|
||||||
|
tvDesc.setVisibility(View.INVISIBLE);
|
||||||
}
|
}
|
||||||
tvDesc.setText(descriptionText);
|
tvDesc.setText(descriptionText);
|
||||||
distance.setText(place.distance);
|
distance.setText(place.distance);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue