urbanairship-core/src/main/java/com/urbanairship/messagecenter/ImageLoader.java
private void installCache() {
            // URL Cache
            File cacheDir = new File(context.getApplicationContext().getCacheDir(), CACHE_DIR);
            if (!cacheDir.exists()) {
                //noinspection ResultOfMethodCallIgnored
                cacheDir.mkdirs();
            }

            if (HttpResponseCache.getInstalled() == null) {
                try {
                    HttpResponseCache.install(cacheDir, DISK_CACHE_SIZE);
                } catch (IOException e) {
                    Logger.error("Unable to install image loader cache");
                }
            }
        }
/**
         * Installs a HttpResponseCache if a cache is not already installed.
         */
Installs a HttpResponseCache if a cache is not already installed.
Installs a HttpResponseCache if a cache is not already installed .
private void installCache() {
            File cacheDir = new File(context.getApplicationContext().getCacheDir(), CACHE_DIR);
            if (!cacheDir.exists()) {
                cacheDir.mkdirs();
            }
            if (HttpResponseCache.getInstalled() == null) {
                try {
                    HttpResponseCache.install(cacheDir, DISK_CACHE_SIZE);
                } catch (IOException e) {
                    Logger.error("Unable to install image loader cache");
                }
            }
        }
private void installCache ( ) { File cacheDir = new File ( context . getApplicationContext ( ) . getCacheDir ( ) , CACHE_DIR ) ; if ( ! cacheDir . exists ( ) ) { cacheDir . mkdirs ( ) ; } if ( HttpResponseCache . getInstalled ( ) == null ) { try { HttpResponseCache . install ( cacheDir , DISK_CACHE_SIZE ) ; } catch ( IOException e ) { Logger . error ( "Unable to install image loader cache" ) ; } } }
Installs a HttpResponseCache if a cache is not already installed.
Installs a HttpResponseCache if a cache is not already installed .
// URL Cache //noinspection ResultOfMethodCallIgnored