Created
November 29, 2016 15:18
-
-
Save chethann/f674c17f2eb2bbc63557a6912e228c0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CacheKey cacheKey = DefaultCacheKeyFactory.getInstance().getEncodedCacheKey(ImageRequest.fromUri(imageUrl)); | |
StagingArea stagingArea = StagingArea.getInstance(); | |
EncodedImage result = stagingArea.get(cacheKey); | |
if(result != null){ | |
result.close(); | |
return true; | |
} | |
return ImagePipelineFactory.getInstance().getMainDiskStorageCache() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment