Return longDescription instead of description

This commit is contained in:
misaochan 2017-12-31 02:08:11 +10:00
parent a38e465cd6
commit ca35b5e544
3 changed files with 6 additions and 2 deletions

View file

@ -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);

View file

@ -38,6 +38,10 @@ public class Place {
return description;
}
public String getLongDescription() {
return longDescription;
}
public void setDistance(String distance) {
this.distance = distance;
}

View file

@ -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);
}