Skip to content

Commit

Permalink
Add missing ID field to NearbyPlace
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Chagas <[email protected]>
  • Loading branch information
rtchagas committed May 11, 2020
1 parent 0f77973 commit ca1c1d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class GoogleMapsRepository constructor(

val latLng = LatLng(place.geometry.location.lat, place.geometry.location.lng)

return NearbyPlace(place.name, photoList, place.vicinity, typeList, latLng)
return NearbyPlace(place.placeId, place.name, photoList, place.vicinity, typeList, latLng)
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import kotlinx.android.parcel.Parcelize

@Parcelize
class NearbyPlace(
var placeId: String,
var placeName: String,
var placePhotos: MutableList<PhotoMetadata>,
var placeAddress: String,
Expand All @@ -28,7 +29,7 @@ class NearbyPlace(
}

override fun getId(): String? {
return null
return placeId
}

override fun getPhotoMetadatas(): MutableList<PhotoMetadata> {
Expand Down

0 comments on commit ca1c1d7

Please sign in to comment.