public static synchronized void resetAndSetNewConfig(Context ctx, Config config) {
        GLOBAL_CONFIG = config;

        if (DISK_CACHE_MANAGER != null) {
            DISK_CACHE_MANAGER.clear();
            DISK_CACHE_MANAGER = null;
            createCache(ctx);
        }

        if (EXECUTOR_MANAGER != null) {
            EXECUTOR_MANAGER.shutDown();
            EXECUTOR_MANAGER = null;
        }
        Log.i(TAG, "New config set");
    }
public static synchronized void resetAndSetNewConfig ( Context ctx , Config config ) { GLOBAL_CONFIG = config ; if ( DISK_CACHE_MANAGER != null ) { DISK_CACHE_MANAGER . clear ( ) ; DISK_CACHE_MANAGER = null ; createCache ( ctx ) ; } if ( EXECUTOR_MANAGER != null ) { EXECUTOR_MANAGER . shutDown ( ) ; EXECUTOR_MANAGER = null ; } Log . i ( TAG , "New config set" ) ; }
Sets a new config and clears the previous cache