@Override protected void onPostExecute(Boolean success) { AttachmentView attachmentView = downloadJob.getAttachmentView(); downloadJob.setSuccess(success); if (success) { attachmentView.setImage(bitmap, bitmapOrientation); } else { if (!downloadJob.hasRetry()) { attachmentView.signalImageLoadingError(); } } handler.sendEmptyMessage(0); }