Last active
February 25, 2018 14:56
-
-
Save savvasdalkitsis/14d870425c53fa47aee922cac40dab56 to your computer and use it in GitHub Desktop.
medium_post_fresco_4
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
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