Added timeouts for last.fm data loading
This commit is contained in:
parent
a3d610c411
commit
783332c3af
2 changed files with 6 additions and 7 deletions
|
|
@ -123,15 +123,10 @@ public class ArtistAdapter extends AbsMultiSelectAdapter<ArtistAdapter.ViewHolde
|
|||
return bitmap;
|
||||
}
|
||||
})
|
||||
.displayer(new FadeInBitmapDisplayer(FADE_IN_TIME) {
|
||||
.displayer(new FadeInBitmapDisplayer(FADE_IN_TIME, true, true, false) {
|
||||
@Override
|
||||
public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {
|
||||
boolean loadedFromMemoryCache = loadedFrom == LoadedFrom.MEMORY_CACHE;
|
||||
if (loadedFromMemoryCache) {
|
||||
imageAware.setImageBitmap(bitmap);
|
||||
} else {
|
||||
super.display(bitmap, imageAware, loadedFrom);
|
||||
}
|
||||
super.display(bitmap, imageAware, loadedFrom);
|
||||
if (usePalette)
|
||||
setColors(holder.paletteColor, holder);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue