mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Return longDescription instead of description
This commit is contained in:
parent
a38e465cd6
commit
ca35b5e544
3 changed files with 6 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ public class NearbyInfoDialog extends OverlayDialog {
|
|||
NearbyInfoDialog mDialog = new NearbyInfoDialog();
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString(ARG_TITLE, place.name);
|
||||
bundle.putString(ARG_DESC, place.getDescription().getText());
|
||||
bundle.putString(ARG_DESC, place.getLongDescription());
|
||||
bundle.putDouble(ARG_LATITUDE, place.location.getLatitude());
|
||||
bundle.putDouble(ARG_LONGITUDE, place.location.getLongitude());
|
||||
bundle.putParcelable(ARG_SITE_LINK, place.siteLinks);
|
||||
|
|
|
|||
|
|
@ -38,6 +38,10 @@ public class Place {
|
|||
return description;
|
||||
}
|
||||
|
||||
public String getLongDescription() {
|
||||
return longDescription;
|
||||
}
|
||||
|
||||
public void setDistance(String distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class PlaceRenderer extends Renderer<Place> {
|
|||
public void render() {
|
||||
Place place = getContent();
|
||||
tvName.setText(place.name);
|
||||
String descriptionText = place.getDescription().getText();
|
||||
String descriptionText = place.getLongDescription();
|
||||
if (descriptionText.equals("?")) {
|
||||
descriptionText = getContext().getString(R.string.no_description_found);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue