Java Code Examples for com.nostra13.universalimageloader.utils.L#writeLogs()

The following examples show how to use com.nostra13.universalimageloader.utils.L#writeLogs() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Common.java    From Rey-MusicPlayer with Apache License 2.0 5 votes vote down vote up
private void initImageLoader() {

        ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this)
                .defaultDisplayImageOptions(options)
                .build();

        ImageLoader.getInstance().init(config);

        L.writeDebugLogs(false);
        L.disableLogging();
        L.writeLogs(false);
    }
 
Example 2
Source File: ImageConfig.java    From wallpaperboard with Apache License 2.0 5 votes vote down vote up
public static ImageLoaderConfiguration getImageLoaderConfiguration(@NonNull Context context) {
    L.writeLogs(false);
    L.writeDebugLogs(false);
    return new ImageLoaderConfiguration.Builder(context)
            .threadPriority(Thread.NORM_PRIORITY - 2)
            .threadPoolSize(4)
            .tasksProcessingOrder(QueueProcessingType.FIFO)
            .diskCacheSize(256 * FileHelper.MB)
            .diskCache(new UnlimitedDiskCache(new File(
                    context.getCacheDir().toString() + "/uil-images")))
            .memoryCacheSize(8 * FileHelper.MB)
            .build();
}
 
Example 3
Source File: TimberApp.java    From Muzesto with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();
    mInstance = this;
    ImageLoaderConfiguration localImageLoaderConfiguration = new ImageLoaderConfiguration.Builder(this).build();
    ImageLoader.getInstance().init(localImageLoaderConfiguration);
    L.writeLogs(false);
    L.disableLogging();
    L.writeDebugLogs(false);
    Nammu.init(this);

    mContext = getApplicationContext();

    /*if (!ATE.config(this, "light_theme").isConfigured()) {
        ATE.config(this, "light_theme")
                .activityTheme(R.style.AppTheme)
                .primaryColorRes(R.color.colorPrimary)
                .accentColorRes(R.color.colorAccent)
                .coloredNavigationBar(false)
                //.usingMaterialDialogs(true)
                .commit();
    }*/
    /*if (!ATE.config(this, "dark_theme").isConfigured()) {
        ATE.config(this, "dark_theme")
                .activityTheme(R.style.AppTheme)
                .primaryColorRes(R.color.colorPrimary)
                .accentColorRes(R.color.colorAccent)
                .coloredNavigationBar(false)
                //.usingMaterialDialogs(true)
                .commit();
    }*/
    /*if (!ATE.config(this, "light_theme_notoolbar").isConfigured()) {
        ATE.config(this, "light_theme_notoolbar")
                .activityTheme(R.style.AppTheme)
                .coloredActionBar(false)
                .primaryColorRes(R.color.colorPrimary)
                .accentColorRes(R.color.colorAccent)
                .coloredNavigationBar(true)
                //.usingMaterialDialogs(true)
                .commit();
    }*/
    /*if (!ATE.config(this, "dark_theme_notoolbar").isConfigured()) {
        ATE.config(this, "dark_theme_notoolbar")
                .activityTheme(R.style.AppThemeDark)
                .coloredActionBar(false)
                .primaryColorRes(R.color.colorPrimary)
                .accentColorRes(R.color.colorAccent)
                .coloredNavigationBar(true)
                //.usingMaterialDialogs(true)
                .commit();
    }*/

}