Skip to content

Commit

Permalink
see 08/25 log
Browse files Browse the repository at this point in the history
  • Loading branch information
Blankj committed Aug 25, 2018
1 parent 1a02cb4 commit db383b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ public static CacheDiskUtils getInstance(@NonNull final File cacheDir,
}
if (cacheDir.mkdirs()) {
DiskCacheManager cacheManager = new DiskCacheManager(cacheDir, maxSize, maxCount);
return CACHE_MAP.put(cacheKey, new CacheDiskUtils(cacheKey, cacheManager));
CacheDiskUtils cacheDiskUtils = new CacheDiskUtils(cacheKey, cacheManager);
CACHE_MAP.put(cacheKey, cacheDiskUtils);
return cacheDiskUtils;
} else {
throw new RuntimeException("can't make dirs in " + cacheDir.getAbsolutePath());
}
Expand Down

0 comments on commit db383b3

Please sign in to comment.