Skip to content

Commit 21e54ef

Browse files
committed
Removed No description label
1 parent c00f755 commit 21e54ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/fr/free/nrw/commons/nearby/PlaceRenderer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ public void render() {
4444
Place place = getContent();
4545
tvName.setText(place.name);
4646
String descriptionText = place.getLongDescription();
47+
tvDesc.setVisibility(View.VISIBLE);
4748
if (descriptionText.equals("?")) {
48-
descriptionText = "";
49+
descriptionText = getContext().getString(R.string.no_description_found);
50+
tvDesc.setVisibility(View.INVISIBLE);
4951
}
5052
tvDesc.setText(descriptionText);
5153
distance.setText(place.distance);

0 commit comments

Comments
 (0)