Skip to content

Instantly share code, notes, and snippets.

@savvasdalkitsis
Last active February 25, 2018 14:56
Show Gist options
  • Save savvasdalkitsis/14d870425c53fa47aee922cac40dab56 to your computer and use it in GitHub Desktop.
Save savvasdalkitsis/14d870425c53fa47aee922cac40dab56 to your computer and use it in GitHub Desktop.
medium_post_fresco_4
val imagePipelineConfig = OkHttpImagePipelineConfigFactory
.newBuilder(context, okHttpClient)
// no way to disable the disk cache globally, setting everything
// no to max 0 bytes
  .setMainDiskCacheConfig(DiskCacheConfig.newBuilder(context)
.setMaxCacheSize(0)
.setMaxCacheSizeOnLowDiskSpace(0)
.setMaxCacheSizeOnVeryLowDiskSpace(0)
.build())
.build()
Fresco.initialize(this, imagePipelineConfig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment