I m new to java, what does return;
mean? is it like break
?
public void run() {
if(imageViewReused(photoToLoad))
return;
Bitmap bmp=getBitmap(photoToLoad.url);
memoryCache.put(photoToLoad.url, bmp);
if(imageViewReused(photoToLoad))
return;
BitmapDisplayer bd=new BitmapDisplayer(bmp, photoToLoad);
Activity a=(Activity)photoToLoad.imageView.getContext();
a.runOnUiThread(bd);
}
if the second imageViewReused(photoToLoad)
returns true, BitmapDisplayer bd=new BitmapDisplayer(bmp, photoToLoad)
won't be executed, right?