Skip to content

Commit

Permalink
Merge pull request #5833 from hieupham007/timob-14875-3_3_X
Browse files Browse the repository at this point in the history
[TIMOB-14875](3_3_X): Correctly handle non image responses for httpClient
  • Loading branch information
ayeung committed Jun 20, 2014
2 parents 7eec007 + 1dd22e6 commit 7e0a401
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public void loadBitmapInfo()
}

// If the MIME-type is "image/*" or undetermined, try to decode the file / data into a bitmap.
if (mt == null || mt.startsWith("image/")) {
if (mimetype == null || mimetype.startsWith("image/")) {
// Query the dimensions of a bitmap without allocating the memory for its pixels
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inJustDecodeBounds = true;
Expand Down

0 comments on commit 7e0a401

Please sign in to comment.