Merge "Avoid division by zero error when AppOps history is empty." into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-28 05:36:09 +00:00
committed by Android (Google) Code Review

View File

@@ -2951,7 +2951,7 @@ public class StatsPullAtomService extends SystemService {
}
int processHistoricalOps(HistoricalOps histOps, int atomTag, List<StatsEvent> pulledData) {
int counter = 0;
int counter = 1;
for (int uidIdx = 0; uidIdx < histOps.getUidCount(); uidIdx++) {
final HistoricalUidOps uidOps = histOps.getUidOpsAt(uidIdx);
final int uid = uidOps.getUid();