diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-06 19:04:20 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-06 19:04:20 +0200 |
commit | 238f41531505de090bbacf9a74b1c525f5d2ea3f (patch) | |
tree | 6a9d452a59405749855aaece420455920a3d2cf5 /src/de/podfetcher/asynctask/FeedImageLoader.java | |
parent | 1e4a3871ff710e55c6d4464d95e6cbecf373ba77 (diff) | |
download | AntennaPod-238f41531505de090bbacf9a74b1c525f5d2ea3f.zip |
Fixed: calculateSampleSize returned wrong value when source size <
preferred size
Diffstat (limited to 'src/de/podfetcher/asynctask/FeedImageLoader.java')
-rw-r--r-- | src/de/podfetcher/asynctask/FeedImageLoader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/podfetcher/asynctask/FeedImageLoader.java b/src/de/podfetcher/asynctask/FeedImageLoader.java index a36525cf9..c0dacd018 100644 --- a/src/de/podfetcher/asynctask/FeedImageLoader.java +++ b/src/de/podfetcher/asynctask/FeedImageLoader.java @@ -108,7 +108,7 @@ public class FeedImageLoader { private int calculateSampleSize(int width, int height) { int max = Math.max(width, height); if (max < PREFERRED_LENGTH) { - return max; + return 1; } else { // find first sample size where max / sampleSize < // PREFERRED_LENGTH |