fix cleaning of temp install APKs

When the filenaming was changed in 91eb408 !514 this was not updated. So
now it is keeping these files forever, which gets large fast.

closes #1149
This commit is contained in:
Hans-Christoph Steiner 2017-09-02 22:28:48 +02:00
parent 0730d3c676
commit 6651117f90

View File

@ -93,7 +93,7 @@ public class CleanCacheService extends IntentService {
} }
for (File f : files) { for (File f : files) {
if (f.getName().startsWith("install-")) { if (f.getName().endsWith(".apk")) {
clearOldFiles(f, TimeUnit.HOURS.toMillis(1)); clearOldFiles(f, TimeUnit.HOURS.toMillis(1));
} }
} }