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

Commit 5ce13c1b authored by Howard Ro's avatar Howard Ro Committed by Android (Google) Code Review
Browse files

Merge "Prevent writeDataToDisk calls when switching from guest user to primary user"

parents 94713885 f7a3bcbe
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -328,9 +328,11 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
             * Skip immediately if intent is not relevant to device shutdown.
             */
            if (!intent.getAction().equals(Intent.ACTION_REBOOT)
                    && !intent.getAction().equals(Intent.ACTION_SHUTDOWN)) {
                && !(intent.getAction().equals(Intent.ACTION_SHUTDOWN)
                       && (intent.getFlags() & Intent.FLAG_RECEIVER_FOREGROUND) != 0)) {
              return;
            }

            Slog.i(TAG, "StatsCompanionService noticed a shutdown.");
            synchronized (sStatsdLock) {
                if (sStatsd == null) {