public static BitmapUtils create(Context ctx, String diskCachePath, int memoryCacheSize) { if (instance == null) { instance = new BitmapUtils(ctx.getApplicationContext(), diskCachePath); globalConfig.setMemoryCacheSize(memoryCacheSize); } return instance; }
public BitmapUtils( Context context, String diskCachePath, int memoryCacheSize, int diskCacheSize) { this(context, diskCachePath); globalConfig.setMemoryCacheSize(memoryCacheSize); globalConfig.setDiskCacheSize(diskCacheSize); }