aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/StaticMapsProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* refactoring: use Math.max to compute the maximum of two integer valuesSamuel Tardieu2013-04-061-6/+1
|
* refactoring: remove unused importSamuel Tardieu2013-04-061-1/+0
|
* refactoring: remove extra checkSamuel Tardieu2013-04-061-2/+2
| | | | | If getWaypoints() returns an empty collection, then the loop will do nothing. Since it cannot return a null value, the test is redundant.
* refactoring: remove redundant null checkSamuel Tardieu2013-04-061-4/+0
| | | | | | If the cache parameter is null, both callers will crash right before or right after the call to storeCachePreviewMap. There is no point in checking for nullness in this method.
* refactoring: make sure downloadMaps doesn't get a null cacheSamuel Tardieu2013-04-061-4/+0
| | | | | If downloadMaps cannot get a null cache in the first place, the null check is no longer needed.
* refactoring: remove redundant return statementsSamuel Tardieu2013-04-061-3/+0
|
* remove StaticMapsProvider changesMarco Jacob2013-03-271-14/+9
|
* more checks in static maps testMarco Jacob2013-03-271-9/+16
|
* refactoring of static maps codeBananeweizen2013-03-101-17/+14
| | | * fix names, documentation and null check
* fixes #2507 - Waypoints only stored if not existingMarco Jacob2013-03-071-14/+61
|
* Refactoring: rename cgCache into GeocacheSamuel Tardieu2013-02-031-7/+7
|
* refactoring: use exception object in logggingBananeweizen2013-01-121-2/+2
|
* Refactoring: rename cgWaypoint into WaypointSamuel Tardieu2013-01-071-5/+5
|
* refactoring: findbugsBananeweizen2012-12-301-14/+14
|
* Refactoring: narrow scope of variablesSamuel Tardieu2012-12-181-1/+1
|
* Merge branch 'release' into upstreamSamuel Tardieu2012-12-171-1/+1
|\ | | | | | | | | Conflicts: main/res/values/strings.xml
| * fix #147: host markers on our own siteSamuel Tardieu2012-12-171-1/+1
| |
* | #2083: target level 17 changesBananeweizen2012-11-191-18/+11
|/ | | | | * set level 17 as target in manifest (level 4 still supported) * refactor compatibility classes * move deprecated code into compatibility classes
* fix: exception in syslog for missing map previewBananeweizen2012-11-181-3/+12
|
* fixes #2050 - minimal static image size reduced to 1k, but no image ↵Marco Jacob2012-09-211-3/+3
| | | | available will appear again
* refactoring: move static maps check API to cacheBananeweizen2012-09-091-4/+11
|
* fixes #1950 - StaticMapsProvider checks input parameter for nullMarco Jacob2012-08-141-1/+16
|
* Merge branch 'release' into upstreamSamuel Tardieu2012-05-301-5/+5
|\
| * fixes #1670 : wrong filename for downloaded cache and waypoint static mapsMarco Jacob2012-05-301-5/+5
| |
* | refactoring: clean up leaked interface of static maps providerBananeweizen2012-05-301-17/+35
|/
* Use httpclientandroidlib instead of plain old httpclientSamuel Tardieu2012-05-231-1/+1
|
* Fix #1569: download details preview through StaticMapsProviderMarco Jacob2012-05-161-22/+37
|
* factoring: use constants for map file namesBananeweizen2012-05-131-10/+9
|
* fixes #1512 : deletes all static maps for waypoints of a cache on refreshMarco Jacob2012-05-121-1/+3
|
* refactoring: remove unused codeBananeweizen2012-05-041-10/+0
|
* Merge pull request #1492 from marco-jacob/issue#1465Bananeweizen2012-05-041-0/+10
|\ | | | | Fix for Issue#1465
| * Fixes issue #1465. Cache static maps are displayed right after downloadMarco Jacob2012-05-031-0/+10
| |
* | refactoring: remove some activity contexts from non activity codeBananeweizen2012-05-031-7/+2
|/
* Refactoring: remove redundant initializersSamuel Tardieu2012-04-281-1/+1
| | | | | The initial values were never used as the variables are set in any case before being used.
* no download if http response code differs from 200Marco Jacob2012-04-251-21/+27
|
* Refactoring: remove isValidIndex() and most uses of hasWaypoints()Samuel Tardieu2012-04-221-8/+6
| | | | | | | | | Most of the time, a loop on cgCache#getWaypoints() follows. This method returns an empty collection, so the cgCache#hasWaypoints() test is useless. Also, checking for a valid index is useless as cgCache#getWaypoint() will return null if the index is invalid.
* Refactoring: rename request into getRequestSamuel Tardieu2012-04-171-1/+1
| | | | Those methods only do GET requests.
* Merge branch 'common-network-code' into upstreamSamuel Tardieu2012-04-131-17/+24
|\ | | | | | | | | Conflicts: main/src/cgeo/geocaching/CacheDetailActivity.java
| * Refactoring: use common URL builder methodsSamuel Tardieu2012-04-121-14/+14
| |
| * Cleanup: do not add Content-Type to GET requestSamuel Tardieu2012-04-121-4/+11
| | | | | | | | | | Whatever code requests its presence is probably wrong, as Content-Type describes the type of the body, which is non-existent for a GET request.
* | refactoring: remove the logging tag from settingsBananeweizen2012-04-121-2/+2
|/
* Remove Task type, whose name field is never usedSamuel Tardieu2012-04-111-2/+1
| | | | | Task is only a Runnable with a name field, whose value is never consulted.
* Proxy all logs through cgeo.geocaching.utils.LogSamuel Tardieu2012-03-311-1/+1
| | | | | | | | The behaviour is unchanged, but altering Settings.isDebug() to return false will prevent verbose, debug and info levels messages from being logged. Part of work on #1301.
* refactoring: first part of removing cgBaseBananeweizen2012-03-101-3/+4
| | | | | | | * extract network stuff (non GC related) * extract GC login stuff * move UI related pieces to activities * to do: move parsing and searching to better places, remove cgBase completely afterwards
* fix #1238: Fatal Error while updating stored cachesBananeweizen2012-03-091-1/+1
|
* Merge remote-tracking branch 'marco-jacob/issue#285'Bananeweizen2012-03-051-9/+28
|\ | | | | | | | | Conflicts: main/src/cgeo/geocaching/StaticMapsProvider.java
| * javadoc adapted, PriorityThreadFactory hidden and ThreadPool renamed to ↵Marco Jacob2012-02-241-3/+2
| | | | | | | | BlockingThreadPool
| * import static maps after gpx importMarco Jacob2012-02-241-12/+31
| |
* | new: menu to refresh static maps in static map activityBananeweizen2012-02-171-22/+27
|/
* Added check for static maps.Torsten Keil2012-02-031-0/+33
|