diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2011-11-01 15:16:06 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2011-11-01 15:16:06 +0100 |
| commit | ce156ecd87df9372ff4a5f27fd56ffb30542db93 (patch) | |
| tree | 96d7f61cfaf8e1c3a569e2d3c79574f57dc39a9f /main/src | |
| parent | 04c853e79301398c2920983b4c3086f5b3ff8b69 (diff) | |
| parent | c046b4910184a09b356f0ceda0d67d783a8d232a (diff) | |
| download | cgeo-ce156ecd87df9372ff4a5f27fd56ffb30542db93.zip cgeo-ce156ecd87df9372ff4a5f27fd56ffb30542db93.tar.gz cgeo-ce156ecd87df9372ff4a5f27fd56ffb30542db93.tar.bz2 | |
Merge branch 'master' of https://Bananeweizen@github.com/cgeo/c-geo-opensource.git
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/cgeo/geocaching/cgBase.java | 2 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/cgDirectionImg.java | 2 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/network/HtmlImage.java | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/main/src/cgeo/geocaching/cgBase.java b/main/src/cgeo/geocaching/cgBase.java index 0437a6a..053119f 100644 --- a/main/src/cgeo/geocaching/cgBase.java +++ b/main/src/cgeo/geocaching/cgBase.java @@ -710,7 +710,7 @@ public class cgBase { final Matcher matcherDirection = patternDirection.matcher(row); while (matcherDirection.find()) { if (matcherDirection.groupCount() > 0) { - cache.setDirectionImg(matcherDirection.group(1)); + cache.setDirectionImg(URLDecoder.decode(matcherDirection.group(1))); } } } catch (Exception e) { diff --git a/main/src/cgeo/geocaching/cgDirectionImg.java b/main/src/cgeo/geocaching/cgDirectionImg.java index 9c26b41..964af5d 100644 --- a/main/src/cgeo/geocaching/cgDirectionImg.java +++ b/main/src/cgeo/geocaching/cgDirectionImg.java @@ -9,7 +9,7 @@ import java.io.File; public class cgDirectionImg { - public static void getDrawable(String geocode, String code) { + public static void getDrawable(final String geocode, final String code) { if (StringUtils.isBlank(geocode) || StringUtils.isBlank(code)) { return; } diff --git a/main/src/cgeo/geocaching/network/HtmlImage.java b/main/src/cgeo/geocaching/network/HtmlImage.java index 4e996e3..59aa002 100644 --- a/main/src/cgeo/geocaching/network/HtmlImage.java +++ b/main/src/cgeo/geocaching/network/HtmlImage.java @@ -94,7 +94,7 @@ public class HtmlImage implements Html.ImageGetter { bufferedEntity = new BufferedHttpEntity(httpResponse.getEntity()); } } catch (Exception e) { - Log.e(Settings.tag, "cgHtmlImg.getDrawable (downloading from web)", e); + Log.e(Settings.tag, "HtmlImage.getDrawable (downloading from web)", e); } } @@ -115,7 +115,7 @@ public class HtmlImage implements Html.ImageGetter { // get image and return if (imagePre == null) { - Log.d(Settings.tag, "cgHtmlImg.getDrawable: Failed to obtain image"); + Log.d(Settings.tag, "HtmlImage.getDrawable: Failed to obtain image"); if (returnErrorImage) { imagePre = BitmapFactory.decodeResource(context.getResources(), R.drawable.image_not_loaded); @@ -138,7 +138,7 @@ public class HtmlImage implements Html.ImageGetter { try { imagePre = Bitmap.createScaledBitmap(imagePre, width, height, true); } catch (Exception e) { - Log.d(Settings.tag, "cgHtmlImg.getDrawable: Failed to scale image"); + Log.d(Settings.tag, "HtmlImage.getDrawable: Failed to scale image"); return null; } } else { @@ -162,7 +162,7 @@ public class HtmlImage implements Html.ImageGetter { final File fileSec = LocalStorage.getStorageSecFile(geocode, url, true); return loadCachedImage(fileSec); } catch (Exception e) { - Log.w(Settings.tag, "cgHtmlImg.getDrawable (reading cache): " + e.toString()); + Log.w(Settings.tag, "HtmlImage.getDrawable (reading cache): " + e.toString()); } return null; } @@ -180,7 +180,7 @@ public class HtmlImage implements Html.ImageGetter { } } } catch (Exception e) { - Log.e(Settings.tag, "cgHtmlImg.makeAbsoluteURL (parse URL)", e); + Log.e(Settings.tag, "HtmlImage.makeAbsoluteURL (parse URL)", e); } return null; } |
