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

Commit 091050e9 authored by Makoto Onuki's avatar Makoto Onuki Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in usage stats manager (recent regression)" into oc-dev

parents 4f5c38b3 303e4157
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -831,6 +831,9 @@ public class UsageStatsService extends SystemService implements
            final UserUsageStatsService service =
                    getUserDataAndInitializeIfNeededLocked(userId, timeNow);
            List<UsageStats> list = service.queryUsageStats(bucketType, beginTime, endTime);
            if (list == null) {
                return null;
            }

            // Mangle instant app names *using their current state (not whether they were ephemeral
            // when the data was recorded)*.