Java 类com.bumptech.glide.load.engine.cache.DiskCacheAdapter 实例源码

项目:narrate-android    文件:GlobalApplication.java   
private void setupGlide() {
    MemorySizeCalculator calculator = new MemorySizeCalculator(this);
    int defaultMemoryCacheSize = calculator.getMemoryCacheSize();
    int defaultBitmapPoolSize = calculator.getBitmapPoolSize();

    // disable the disk cache because all of our images are already cached on the sd card
    Glide.setup(new GlideBuilder(this)
                    .setDiskCache(new DiskCacheAdapter())
                    .setBitmapPool(new LruBitmapPool(defaultBitmapPoolSize))
                    .setMemoryCache(new LruResourceCache(defaultMemoryCacheSize))
    );
}
项目:PeSanKita-android    文件:TextSecureGlideModule.java   
@Override
public DiskCache build() {
  return new DiskCacheAdapter();
}
项目:Cable-Android    文件:TextSecureGlideModule.java   
@Override
public DiskCache build() {
  return new DiskCacheAdapter();
}
项目:TextSecureSMP    文件:TextSecureGlideModule.java   
@Override
public DiskCache build() {
  return new DiskCacheAdapter();
}
项目:Silence    文件:SilenceGlideModule.java   
@Override
public DiskCache build() {
  return new DiskCacheAdapter();
}