Cleanup pma files

pull/187/head
M66B 4 years ago
parent 8865f13540
commit f7dba8df6f

@ -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…
Cancel
Save