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

Commit 72b27628 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in Usage Stats."

parents eef0bc29 535202d9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -977,7 +977,9 @@ public class UsageStatsService extends SystemService implements
                continue;
            }
            UserUsageStatsService service = mUserState.get(userId);
            if (service != null) {
                service.persistActiveStats();
            }
            mAppStandby.flushToDisk(userId);
        }
        mAppStandby.flushDurationsToDisk();