Correctly find last visible usage in chain

bug: 158792096
Test: manual
Change-Id: I18bee272de79594103bc96253256fec6fc6d62cd
This commit is contained in:
Nate Myren
2021-06-23 15:12:40 -07:00
parent fd49debdc0
commit f85c45a242

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;