diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-05 21:03:15 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-05 21:03:15 +0200 |
commit | 84eff944abcd45b51420a6d0d79a4ff1bc71145a (patch) | |
tree | 096c233964f94c2c49852b67b7659af908efeff3 /src/de/podfetcher/feed/FeedImage.java | |
parent | 3768761e9031e1ccc1136d44fc1f8f0fe6dadb26 (diff) | |
download | AntennaPod-84eff944abcd45b51420a6d0d79a4ff1bc71145a.zip |
Implemented async FeedImage loader
Diffstat (limited to 'src/de/podfetcher/feed/FeedImage.java')
-rw-r--r-- | src/de/podfetcher/feed/FeedImage.java | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/de/podfetcher/feed/FeedImage.java b/src/de/podfetcher/feed/FeedImage.java index c10aeebaa..918e6b78b 100644 --- a/src/de/podfetcher/feed/FeedImage.java +++ b/src/de/podfetcher/feed/FeedImage.java @@ -1,19 +1,17 @@ package de.podfetcher.feed; -import android.graphics.Bitmap; -import android.graphics.BitmapFactory; public class FeedImage extends FeedFile { protected String title; - protected Bitmap image_bitmap; public FeedImage(String download_url, String title) { super(null, download_url, false); this.download_url = download_url; this.title = title; } - - public FeedImage(long id, String title, String file_url, String download_url, boolean downloaded) { + + public FeedImage(long id, String title, String file_url, + String download_url, boolean downloaded) { super(file_url, download_url, downloaded); this.id = id; this.title = title; @@ -26,22 +24,9 @@ public class FeedImage extends FeedFile { public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public Bitmap getImageBitmap() { - if(image_bitmap == null) { - image_bitmap = BitmapFactory.decodeFile(getFile_url()); - } - return image_bitmap; - } - - - - - - } |