Skip to content

Commit

Permalink
* 优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
eajon authored and wengyijiong committed Jan 31, 2019
1 parent 49052b5 commit 145c39b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/eajon/my/glide/GlideModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.Registry;
import com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool;
import com.bumptech.glide.load.engine.cache.ExternalCacheDiskCacheFactory;
import com.bumptech.glide.load.engine.cache.ExternalPreferredCacheDiskCacheFactory;
import com.bumptech.glide.load.engine.cache.LruResourceCache;
import com.bumptech.glide.module.AppGlideModule;

Expand Down Expand Up @@ -46,7 +46,7 @@ public void applyOptions(Context context, GlideBuilder builder) {
builder.setMemoryCache(new LruResourceCache(1 * 1024 * 1024));
//配置图片池大小 20MB
builder.setBitmapPool(new LruBitmapPool(2 * 1024 * 1024));
builder.setDiskCache(new ExternalCacheDiskCacheFactory(context, "wxbCache", 240 * 1024 * 1024));
builder.setDiskCache(new ExternalPreferredCacheDiskCacheFactory(context, "wxbCache", 240 * 1024 * 1024));
// super.applyOptions(context, builder);
}
}

0 comments on commit 145c39b

Please sign in to comment.