Back to project page webimageloader.
The source code is released under:
Apache License
If you think the Android project webimageloader 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.webimageloader.loader; /* ww w . ja va2 s. co m*/ public class MemoryLoader implements Loader { private MemoryCache cache; public MemoryLoader(MemoryCache cache) { this.cache = cache; } @Override public void load(LoaderWork.Manager manager, LoaderRequest request) { MemoryCache.Entry entry = cache.get(request); if (entry != null) { manager.deliverBitmap(entry.bitmap, entry.metadata); } else { // We don't want to cache the image we get back // so just pass the same listener manager.next(request); } } }