Rename method as icons are no longer the only thing stored here.
This commit is contained in:
parent
ca4e1c24a3
commit
bd5503b4cd
@ -136,7 +136,7 @@ public class CleanCacheService extends IntentService {
|
||||
* Delete cached icons that have not been accessed in over a year.
|
||||
*/
|
||||
private void deleteOldIcons() {
|
||||
clearOldFiles(Utils.getIconsCacheDir(this), TimeUnit.DAYS.toMillis(365));
|
||||
clearOldFiles(Utils.getImageCacheDir(this), TimeUnit.DAYS.toMillis(365));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -274,7 +274,7 @@ public class FDroidApp extends Application {
|
||||
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext())
|
||||
.imageDownloader(new ImageLoaderForUIL(getApplicationContext()))
|
||||
.diskCache(new LimitedAgeDiskCache(
|
||||
Utils.getIconsCacheDir(this),
|
||||
Utils.getImageCacheDir(this),
|
||||
null,
|
||||
new FileNameGenerator() {
|
||||
@Override
|
||||
|
@ -124,9 +124,9 @@ public final class Utils {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the directory where cached icons are stored
|
||||
* @return the directory where cached icons/feature graphics/screenshots are stored
|
||||
*/
|
||||
public static File getIconsCacheDir(Context context) {
|
||||
public static File getImageCacheDir(Context context) {
|
||||
File cacheDir = StorageUtils.getCacheDirectory(context.getApplicationContext(), true);
|
||||
return new File(cacheDir, "icons");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user