Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa7848a6 authored by Jeffrey Huang's avatar Jeffrey Huang
Browse files

Migrate away from FileUtils hidden API

Test: m -j
Bug: 144930182
Change-Id: Ib00403f3e6143c544001fc7c19c0baf0d1ddbf43
parent 8b8aa10a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -855,8 +855,8 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
                mDeathTimeMillis.add(now);
                if (mDeathTimeMillis.size() >= DEATH_THRESHOLD) {
                    mDeathTimeMillis.clear();
                    File[] configs = FileUtils.listFilesOrEmpty(new File(CONFIG_DIR));
                    if (configs.length > 0) {
                    File[] configs = new File(CONFIG_DIR).listFiles();
                    if (configs != null && configs.length > 0) {
                        String fileName = configs[0].getName();
                        if (configs[0].delete()) {
                            mDeletedFiles.put(now, fileName);