|
|
@@ -62,12 +62,11 @@ public class HtmlImageGetterUtil implements Html.ImageGetter{
|
|
|
drawableFutureTask = new FutureTask<Drawable>(new Callable<Drawable>() {
|
|
|
@Override
|
|
|
public Drawable call() throws Exception {
|
|
|
- Thread.sleep(2000);
|
|
|
InputStream inputStream = null;
|
|
|
try {
|
|
|
inputStream = (InputStream) new URL(source).getContent();
|
|
|
drawable = Drawable.createFromStream(inputStream, "src");
|
|
|
- drawable.setBounds(0,0,50,50);
|
|
|
+ drawable.setBounds(0,0,drawable.getMinimumWidth(),drawable.getMinimumHeight());
|
|
|
inputStream.close();
|
|
|
return drawable;
|
|
|
} catch (Exception e) {
|