Merge "Correctly find last visible usage in chain" into sc-dev

This commit is contained in:
Nate Myren
2021-06-23 22:44:29 +00:00
committed by Android (Google) Code Review

View File

@@ -542,7 +542,7 @@ final class DiscreteRegistry {
private OpEvent getLastVisible() {
// Search all nodes but the first one, which is the start node
for (int i = mChain.size() - 1; i > 0; i++) {
for (int i = mChain.size() - 1; i > 0; i--) {
OpEvent event = mChain.get(i);
if (!mExemptPkgs.contains(event.mPkgName)) {
return event;