Skip to content
Snippets Groups Projects
Commit f85aaad6 authored by Stanislav Zholnin's avatar Stanislav Zholnin Committed by Android (Google) Code Review
Browse files

Merge "Prevent Historical AppOps from returning empty data."

parents a8be4506 0d9499c4
No related branches found
No related tags found
No related merge requests found
......@@ -4342,6 +4342,9 @@ public class AppOpsManager {
mHistoricalUidOps.removeAt(i);
} else {
uidOp.filter(packageName, featureId, opNames, filter, scaleFactor);
if (uidOp.getPackageCount() == 0) {
mHistoricalUidOps.removeAt(i);
}
}
}
}
......@@ -4681,6 +4684,9 @@ public class AppOpsManager {
mHistoricalPackageOps.removeAt(i);
} else {
packageOps.filter(featureId, opNames, filter, fractionToRemove);
if (packageOps.getFeatureCount() == 0) {
mHistoricalPackageOps.removeAt(i);
}
}
}
}
......@@ -4930,6 +4936,9 @@ public class AppOpsManager {
mHistoricalFeatureOps.removeAt(i);
} else {
featureOps.filter(opNames, filter, fractionToRemove);
if (featureOps.getOpCount() == 0) {
mHistoricalFeatureOps.removeAt(i);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment