mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Merge pull request #1281 from tanvidadu/Nodescription
Removed No description label
This commit is contained in:
commit
4a3c33ed58
1 changed files with 2 additions and 0 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 = getContext().getString(R.string.no_description_found);
|
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