mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 01:06:04 +00:00
Cleanup pma files
This commit is contained in:
parent
8865f13540
commit
f7dba8df6f
1 changed files with 12 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue