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?
Return statement skips the remaining execution of a function scope.
Worth reading: