Back to project page Simple-Dilbert.
The source code is released under:
Apache License
If you think the Android project Simple-Dilbert listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.mareksebera.simpledilbert.utilities; /*from w w w . j av a 2s. c om*/ import android.graphics.Bitmap; import android.util.Log; import com.nostra13.universalimageloader.core.assist.LoadedFrom; import com.nostra13.universalimageloader.core.display.BitmapDisplayer; import com.nostra13.universalimageloader.core.imageaware.ImageAware; public final class FailSafeBitmapDisplayer implements BitmapDisplayer { @Override public void display(Bitmap bitmap, ImageAware imageView, LoadedFrom loadedFrom) { try { imageView.setImageBitmap(bitmap); } catch (IllegalStateException e) { Log.e("debug", e.getMessage(), e); } } }