1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 17:27:00 +00:00

Cleanup pma files

This commit is contained in:
M66B 2020-10-24 19:21:43 +02:00
parent 8865f13540
commit f7dba8df6f

View file

@ -167,6 +167,18 @@ public class WorkerCleanup extends Worker {
}
}
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
Log.i("Checking for pma files");
File pma = new File(context.getDataDir(), "app_webview/BrowserMetrics");
File[] files = pma.listFiles();
if (files != null)
for (File file : files)
if (file.getName().endsWith(".pma")) {
Log.i("Deleting " + file);
file.delete();
}
}
}
long now = new Date().getTime();