Here return act as end of function.
You can avoid it by changing your code as,
public void run() {
if(!imageViewReused(photoToLoad))
{
Bitmap bmp=getBitmap(photoToLoad.url);
memoryCache.put(photoToLoad.url, bmp);
if(!imageViewReused(photoToLoad))
{
BitmapDisplayer bd=new BitmapDisplayer(bmp, photoToLoad);
Activity a=(Activity)photoToLoad.imageView.getContext();
a.runOnUiThread(bd);
}
}