diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-16 11:25:01 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-16 11:25:01 +0200 |
commit | 7633c242d468a069419f091dec95cb4f70be5034 (patch) | |
tree | 8f2cd0d17406833e6709b2427edb6c25b7613885 /main/src/cgeo/geocaching/network | |
parent | ddb1183065fed9a32b22b16ea4df2c2c32c3daee (diff) | |
download | cgeo-7633c242d468a069419f091dec95cb4f70be5034.zip cgeo-7633c242d468a069419f091dec95cb4f70be5034.tar.gz cgeo-7633c242d468a069419f091dec95cb4f70be5034.tar.bz2 |
Fix #1408: do not discard cache when saving cache data
There is no reason to not use the cache when saving a cache whose images
are already present in the device.
Diffstat (limited to 'main/src/cgeo/geocaching/network')
-rw-r--r-- | main/src/cgeo/geocaching/network/HtmlImage.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/network/HtmlImage.java b/main/src/cgeo/geocaching/network/HtmlImage.java index fbcbaaf..37c7486 100644 --- a/main/src/cgeo/geocaching/network/HtmlImage.java +++ b/main/src/cgeo/geocaching/network/HtmlImage.java @@ -71,10 +71,10 @@ public class HtmlImage implements Html.ImageGetter { return new BitmapDrawable(getTransparent1x1Image()); } - Bitmap imagePre = onlySave ? null : loadImageFromStorage(url); + Bitmap imagePre = loadImageFromStorage(url); // Download image and save it to the cache - if (imagePre == null || onlySave) { + if (imagePre == null) { final String absoluteURL = makeAbsoluteURL(url); if (absoluteURL != null) { |