package com.reiser.magictool;

import android.app.Application;
import android.content.Context;

import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
import com.nostra13.universalimageloader.utils.StorageUtils;

import java.io.File;

/**
 * Created by YCPC008 on 2015/12/8.
 */
public class ReiserApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        initImageLoader(getApplicationContext());
    }

    private void initImageLoader(Context context) {

        File cacheDir = StorageUtils.getCacheDirectory(context);
/*        ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(
                context).threadPoolSize(3)
                .threadPriority(Thread.NORM_PRIORITY - 2)
                .memoryCache(new LruMemoryCache(2 * 1024 * 1024))
                .denyCacheImageMultipleSizesInMemory()
                .diskCacheFileNameGenerator(new Md5FileNameGenerator())
                .tasksProcessingOrder(QueueProcessingType.LIFO)
                .diskCache(new UnlimitedDiskCache(cacheDir)).writeDebugLogs()
                .build();*/
        ImageLoaderConfiguration config = ImageLoaderConfiguration.createDefault(context);
        ImageLoader.getInstance().init(config);
    }
}

@@ -649,18 +649,16 @@
 t);%0A
-/*
         
 Imag
@@ -657,543 +657,18 @@
     
-ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(%0A                context).threadPoolSize(3)%0A                .threadPriority(Thread.NORM_PRIORITY - 2)%0A                .memoryCache(new LruMemoryCache(2 * 1024 * 1024))%0A                .denyCacheImageMultipleSizesInMemory()%0A                .diskCacheFileNameGenerator(new Md5FileNameGenerator())%0A                .tasksProcessingOrder(QueueProcessingType.LIFO)%0A                .diskCache(new UnlimitedDiskCache(cacheDir)).writeDebugLogs()%0A                .build();*/
+  int a=0;
 %0A   

test branch