diff options
Diffstat (limited to 'src/cgeo/geocaching/cgHtmlImg.java')
| -rw-r--r-- | src/cgeo/geocaching/cgHtmlImg.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cgeo/geocaching/cgHtmlImg.java b/src/cgeo/geocaching/cgHtmlImg.java index f3e9f20..e6e5a2e 100644 --- a/src/cgeo/geocaching/cgHtmlImg.java +++ b/src/cgeo/geocaching/cgHtmlImg.java @@ -109,7 +109,7 @@ public class cgHtmlImg implements Html.ImageGetter { final Date now = new Date(); final File file = new File(fileName); - if (file.exists() == true) { + if (file.exists()) { final long imageSize = file.length(); // large images will be downscaled on input to save memory @@ -132,7 +132,7 @@ public class cgHtmlImg implements Html.ImageGetter { if (imagePre == null) { final File fileSec = new File(fileNameSec); - if (fileSec.exists() == true) { + if (fileSec.exists()) { final long imageSize = fileSec.length(); // large images will be downscaled on input to save memory @@ -159,7 +159,7 @@ public class cgHtmlImg implements Html.ImageGetter { } // download image and save it to the cache - if ((imagePre == null && reason == 0) || onlySave == true) { + if ((imagePre == null && reason == 0) || onlySave) { Uri uri = null; HttpClient client = null; HttpGet getMethod = null; @@ -218,7 +218,7 @@ public class cgHtmlImg implements Html.ImageGetter { } } - if (save == true) { + if (save) { try { // save to memory/SD cache if (bufferedEntity != null) { @@ -247,7 +247,7 @@ public class cgHtmlImg implements Html.ImageGetter { bufferedEntity = null; } - if (onlySave == true) { + if (onlySave) { return null; } |
