/** * Shuts {@link ImagePipelineFactory} down. */ public static void shutDown() { if (sInstance != null) { sInstance.getBitmapMemoryCache().removeAll(AndroidPredicates.<CacheKey>True()); sInstance.getEncodedMemoryCache().removeAll(AndroidPredicates.<CacheKey>True()); sInstance = null; } }
@Override public void clearSensitiveData() { // Clear image cache. ImagePipelineFactory imagePipelineFactory = Fresco.getImagePipelineFactory(); imagePipelineFactory.getBitmapMemoryCache().removeAll(AndroidPredicates.<CacheKey>True()); imagePipelineFactory.getEncodedMemoryCache().removeAll(AndroidPredicates.<CacheKey>True()); imagePipelineFactory.getMainDiskStorageCache().clearAll(); imagePipelineFactory.getSmallImageDiskStorageCache().clearAll(); }