Skip to content

Commit

Permalink
Fix search current location
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Chagas <[email protected]>
  • Loading branch information
rtchagas committed May 13, 2020
1 parent ca1c1d7 commit 5979a44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ data class SimplePlace(
@Json(name = "geometry")
val geometry: Geometry,
@Json(name = "name")
val name: String,
val name: String = "",
@Json(name = "photos")
val photos: List<Photo> = emptyList(),
@Json(name = "place_id")
val placeId: String,
@Json(name = "types")
val types: List<String>,
val types: List<String> = emptyList(),
@Json(name = "vicinity")
val vicinity: String
val vicinity: String = ""
)
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MainActivity : AppCompatActivity() {

val place: Place? = PingPlacePicker.getPlace(data!!)

toast("You selected: ${place?.name}")
toast("You selected: ${place?.name}\n ${place?.id}")
}
}
}

0 comments on commit 5979a44

Please sign in to comment.