Merge branch 'master' into 'master'
two more crash fixes for 0.100.1 fixed two more from the ACRA reports See merge request !342
This commit is contained in:
commit
29689338f9
@ -151,8 +151,12 @@ public class ApkCache {
|
||||
if (dir == null) {
|
||||
return;
|
||||
}
|
||||
File[] files = dir.listFiles();
|
||||
if (files == null) {
|
||||
return;
|
||||
}
|
||||
long olderThan = System.currentTimeMillis() - (secondsAgo * 1000L);
|
||||
for (File f : dir.listFiles()) {
|
||||
for (File f : files) {
|
||||
if (f.isDirectory()) {
|
||||
clearOldFiles(f, olderThan);
|
||||
f.delete();
|
||||
|
Loading…
x
Reference in New Issue
Block a user