Skip to content

Commit db383b3

Browse files
committed
see 08/25 log
1 parent 1a02cb4 commit db383b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utilcode/src/main/java/com/blankj/utilcode/util/CacheDiskUtils.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ public static CacheDiskUtils getInstance(@NonNull final File cacheDir,
140140
}
141141
if (cacheDir.mkdirs()) {
142142
DiskCacheManager cacheManager = new DiskCacheManager(cacheDir, maxSize, maxCount);
143-
return CACHE_MAP.put(cacheKey, new CacheDiskUtils(cacheKey, cacheManager));
143+
CacheDiskUtils cacheDiskUtils = new CacheDiskUtils(cacheKey, cacheManager);
144+
CACHE_MAP.put(cacheKey, cacheDiskUtils);
145+
return cacheDiskUtils;
144146
} else {
145147
throw new RuntimeException("can't make dirs in " + cacheDir.getAbsolutePath());
146148
}

0 commit comments

Comments
 (0)