Permalink
Browse files

Merge pull request #54 from ChristianBecker/master

cleanup: Take the age parameter in account
  • Loading branch information...
2 parents 99da8f7 + 36a969f commit 1d4d87b2291cb7ecd2434a7691bcdc4b506b221c @koush committed Mar 27, 2013
@@ -400,7 +400,7 @@ public static void cleanup(final Context context, long age) {
}
final File f = new File(context.getFilesDir().getAbsolutePath() + '/' + file);
- if (System.currentTimeMillis() > f.lastModified() + CACHE_DURATION_ONE_WEEK) {
+ if (System.currentTimeMillis() > f.lastModified() + age) {
f.delete();
}
}

0 comments on commit 1d4d87b

Please sign in to comment.