diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-08-26 18:56:59 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-08-26 18:56:59 +0200 |
| commit | c373effbc49b5b1d9443a84f9fa234be371cdf4a (patch) | |
| tree | ccac5d2564d16e48054a0b79f5defe67ae4a5dd1 /main/src/cgeo/geocaching/maps/CachesOverlay.java | |
| parent | 1bdbb52841f11559fe8d4ab69c27ef6ed3521d43 (diff) | |
| download | cgeo-c373effbc49b5b1d9443a84f9fa234be371cdf4a.zip cgeo-c373effbc49b5b1d9443a84f9fa234be371cdf4a.tar.gz cgeo-c373effbc49b5b1d9443a84f9fa234be371cdf4a.tar.bz2 | |
refactoring: findbugs cleanup
* don't catch raw exceptions
Diffstat (limited to 'main/src/cgeo/geocaching/maps/CachesOverlay.java')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CachesOverlay.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/maps/CachesOverlay.java b/main/src/cgeo/geocaching/maps/CachesOverlay.java index 8e117eb..ad455b5 100644 --- a/main/src/cgeo/geocaching/maps/CachesOverlay.java +++ b/main/src/cgeo/geocaching/maps/CachesOverlay.java @@ -4,7 +4,6 @@ import cgeo.geocaching.CachePopup; import cgeo.geocaching.Geocache; import cgeo.geocaching.IWaypoint; import cgeo.geocaching.R; -import cgeo.geocaching.settings.Settings; import cgeo.geocaching.WaypointPopup; import cgeo.geocaching.cgData; import cgeo.geocaching.activity.Progress; @@ -19,11 +18,13 @@ import cgeo.geocaching.maps.interfaces.MapItemFactory; import cgeo.geocaching.maps.interfaces.MapProjectionImpl; import cgeo.geocaching.maps.interfaces.MapProvider; import cgeo.geocaching.maps.interfaces.MapViewImpl; +import cgeo.geocaching.settings.Settings; import cgeo.geocaching.utils.Log; import org.apache.commons.lang3.StringUtils; import android.content.Context; +import android.content.res.Resources.NotFoundException; import android.graphics.Canvas; import android.graphics.DashPathEffect; import android.graphics.Paint; @@ -243,7 +244,7 @@ public class CachesOverlay extends AbstractItemizedOverlay { } progress.dismiss(); - } catch (Exception e) { + } catch (NotFoundException e) { Log.e("CachesOverlay.onTap", e); if (progress != null) { progress.dismiss(); |
