AdevintaSpain / Leku

:earth_africa: Map location picker component for Android. Based on Google Maps. An alternative to Google Place Picker.
https://adevintaspain.github.io/Leku/
Apache License 2.0
763 stars 170 forks source link

Handle exception thrown by TimeZoneApi when getting timezone without api-key #335

Closed davidftrujillo closed 2 years ago

davidftrujillo commented 2 years ago

ISSUE

Maybe related to #308

Description

Clicking on the map launches two calls, from GeocoderPresenter.getInfoFromLocation(LatLng):

  1. Geocoder from LatLng
  2. Get Timezone

If no ApiKey is provided to work with the TimeZone API, an IllegalStateException is thrown, causing the getInfoFromLocation to fail and the address obtained from the Geocoder call is not painted in the address box.

Screenshots

Before After

Mandatory GIF

mandatory