Skip to content

Commit

Permalink
Merge pull request #3721 from vishalduggal/timob-11971-30X
Browse files Browse the repository at this point in the history
TIMOB-11971 3_0_X
  • Loading branch information
hieupham007 committed Jan 17, 2013
2 parents b84a166 + fc04a11 commit 3ab86ee
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,12 @@ public Drawable getImageDrawable() {
}

public void setImageBitmap(Bitmap bitmap) {
imageView.setImageBitmap(bitmap);
if (bitmap == null) {
imageView.setImageResource(0);
}
else {
imageView.setImageBitmap(bitmap);
}
}

public void setOnClickListener(OnClickListener clickListener) {
Expand Down

0 comments on commit 3ab86ee

Please sign in to comment.