mirror of https://github.com/M66B/FairEmail.git
Cleanup pma files
This commit is contained in:
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();
|
long now = new Date().getTime();
|
||||||
|
|
Loading…
Reference in New Issue