<BUG>mOkHttpClient = new OkHttpClient().setCache(cache);mOkHttpClient.setConnectTimeout(CONNECTION_TIMEOUT, TimeUnit.MILLISECONDS);mOkHttpClient.setReadTimeout(CONNECTION_TIMEOUT, TimeUnit.MILLISECONDS);mOkHttpClient.setWriteTimeout(CONNECTION_TIMEOUT, TimeUnit.MILLISECONDS);}</BUG><CONTEXT>return;}File cacheDir = createCacheDir(this, IMAGE_CACHE_PATH);long size = calculateDiskCacheSize(cacheDir);Cache cache = new Cache(cacheDir, size);<extra_id_0>@SuppressWarnings("WeakerAccess")</CONTEXT>
mOkHttpClient = new OkHttpClient.Builder().cache(cache).connectTimeout(CONNECTION_TIMEOUT, TimeUnit.MILLISECONDS).readTimeout(CONNECTION_TIMEOUT, TimeUnit.MILLISECONDS).writeTimeout(CONNECTION_TIMEOUT, TimeUnit.MILLISECONDS).build();