Rename method as icons are no longer the only thing stored here.

This commit is contained in:
Peter Serwylo 2017-05-09 09:48:25 +10:00
parent ca4e1c24a3
commit bd5503b4cd
3 changed files with 4 additions and 4 deletions

View File

@ -136,7 +136,7 @@ public class CleanCacheService extends IntentService {
* Delete cached icons that have not been accessed in over a year. * Delete cached icons that have not been accessed in over a year.
*/ */
private void deleteOldIcons() { private void deleteOldIcons() {
clearOldFiles(Utils.getIconsCacheDir(this), TimeUnit.DAYS.toMillis(365)); clearOldFiles(Utils.getImageCacheDir(this), TimeUnit.DAYS.toMillis(365));
} }
/** /**

View File

@ -274,7 +274,7 @@ public class FDroidApp extends Application {
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext()) ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext())
.imageDownloader(new ImageLoaderForUIL(getApplicationContext())) .imageDownloader(new ImageLoaderForUIL(getApplicationContext()))
.diskCache(new LimitedAgeDiskCache( .diskCache(new LimitedAgeDiskCache(
Utils.getIconsCacheDir(this), Utils.getImageCacheDir(this),
null, null,
new FileNameGenerator() { new FileNameGenerator() {
@Override @Override

View File

@ -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); File cacheDir = StorageUtils.getCacheDirectory(context.getApplicationContext(), true);
return new File(cacheDir, "icons"); return new File(cacheDir, "icons");
} }