aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorMarco Jacob <mjacob@union06.de>2012-09-21 21:54:54 +0200
committerMarco Jacob <mjacob@union06.de>2012-09-21 21:54:54 +0200
commit59fd4d308b6a01ed0bad407b0600629a747773bc (patch)
tree01699d372797d7942a69449924bd995d72365692 /main
parentd5b7d9e1ed794a9c5833e16d3960bcb22a6b3ae0 (diff)
downloadcgeo-59fd4d308b6a01ed0bad407b0600629a747773bc.zip
cgeo-59fd4d308b6a01ed0bad407b0600629a747773bc.tar.gz
cgeo-59fd4d308b6a01ed0bad407b0600629a747773bc.tar.bz2
fixes #2050 - minimal static image size reduced to 1k, but no image available will appear again
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/StaticMapsProvider.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/StaticMapsProvider.java b/main/src/cgeo/geocaching/StaticMapsProvider.java
index 89d8bcb..371b432 100644
--- a/main/src/cgeo/geocaching/StaticMapsProvider.java
+++ b/main/src/cgeo/geocaching/StaticMapsProvider.java
@@ -31,8 +31,8 @@ public class StaticMapsProvider {
private static final String WAYPOINT_PREFIX = "wp";
private static final String MAP_FILENAME_PREFIX = "map_";
private static final String MARKERS_URL = "http://cgeo.carnero.cc/_markers/";
- /** In my tests the "no image available" image had 5470 bytes, while "street only" maps had at least 20000 bytes */
- private static final int MIN_MAP_IMAGE_BYTES = 6000;
+ /** We assume there is no real usable image with less than 1k */
+ private static final int MIN_MAP_IMAGE_BYTES = 1000;
/** ThreadPool restricting this to 1 Thread. **/
private static final BlockingThreadPool pool = new BlockingThreadPool(1, Thread.MIN_PRIORITY);
@@ -232,7 +232,7 @@ public class StaticMapsProvider {
/**
* Check if at least one map file exists for the given cache.
- *
+ *
* @param cache
* @return <code>true</code> if at least one mapfile exists; <code>false</code> otherwise
*/