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

Commit 6f65d410 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Update UsageStatsSerivce#KEEP_LEGACY_DIR." into rvc-dev am: 35afbf32...

Merge "Update UsageStatsSerivce#KEEP_LEGACY_DIR." into rvc-dev am: 35afbf32 am: 7f4c5c30 am: 1d0a636b

Change-Id: I9a3d1a4a59fdf2ba8624cbdf3694f15f2f0a6745
parents 5ad85ac7 1d0a636b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -137,8 +137,7 @@ public class UsageStatsService extends SystemService implements
    private static final File USAGE_STATS_LEGACY_DIR = new File(
            Environment.getDataSystemDirectory(), "usagestats");
    // For migration purposes, indicates whether to keep the legacy usage stats directory or not
    // STOPSHIP: b/138323140 this should be false on launch
    private static final boolean KEEP_LEGACY_DIR = true;
    private static final boolean KEEP_LEGACY_DIR = false;

    private static final char TOKEN_DELIMITER = '/';

@@ -648,7 +647,7 @@ public class UsageStatsService extends SystemService implements

    private void deleteLegacyDir(int userId) {
        final File legacyUserDir = new File(USAGE_STATS_LEGACY_DIR, Integer.toString(userId));
        if (!KEEP_LEGACY_DIR) {
        if (!KEEP_LEGACY_DIR && legacyUserDir.exists()) {
            deleteRecursively(legacyUserDir);
            if (legacyUserDir.exists()) {
                Slog.w(TAG, "Error occurred while attempting to delete legacy usage stats "