Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -331,4 +331,10 @@ public void loadImage(Drawable dummyDrawable, RemoteImageLoaderHandler handler)
numRetries, defaultBufferSize));
}
}

public void destroy() {
Log.i("", "shutting down remote image loader");
executor.shutdownNow();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ protected Bitmap downloadImage() {

return BitmapFactory.decodeByteArray(imageData, 0, imageData.length);


} catch (OutOfMemoryError e) {
// do not retry, would make it worse
Log.w(LOG_TAG, "download for " + imageUrl + " failed (attempt " + timesTried + ")");
return null;

} catch (Throwable e) {
Log.w(LOG_TAG, "download for " + imageUrl + " failed (attempt " + timesTried + ")");
e.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#Fri Apr 20 11:08:26 CEST 2012
eclipse.preferences.version=1
encoding/<project>=UTF-8
encoding/src=UTF-8