diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-01-09 23:47:04 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-01-09 23:47:04 +0100 |
| commit | e0f593fb5fe358f6c0e64be32d7e223ad56a17e2 (patch) | |
| tree | 500c698698f4e5dae2bcc6644f73555062b64fcd /main | |
| parent | 106c040bf620ee48f7d0ee94927d6380f8ef35e0 (diff) | |
| download | cgeo-e0f593fb5fe358f6c0e64be32d7e223ad56a17e2.zip cgeo-e0f593fb5fe358f6c0e64be32d7e223ad56a17e2.tar.gz cgeo-e0f593fb5fe358f6c0e64be32d7e223ad56a17e2.tar.bz2 | |
fix #3533: illegal longitude argument for Geocoder
Diffstat (limited to 'main')
| -rw-r--r-- | main/src/cgeo/geocaching/MainActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/MainActivity.java b/main/src/cgeo/geocaching/MainActivity.java index 7905fcf..924c66d 100644 --- a/main/src/cgeo/geocaching/MainActivity.java +++ b/main/src/cgeo/geocaching/MainActivity.java @@ -731,8 +731,10 @@ public class MainActivity extends AbstractActivity { final Geocoder geocoder = new Geocoder(MainActivity.this, Locale.getDefault()); final Geopoint coords = app.currentGeo().getCoords(); addresses = geocoder.getFromLocation(coords.getLatitude(), coords.getLongitude(), 1); - } catch (IOException e) { + } catch (final IOException e) { Log.i("Failed to obtain address"); + } catch (final IllegalArgumentException e) { + Log.w("ObtainAddressThread.run", e); } obtainAddressHandler.sendEmptyMessage(0); |
