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

Commit f85c45a2 authored by Nate Myren's avatar Nate Myren
Browse files

Correctly find last visible usage in chain

bug: 158792096
Test: manual
Change-Id: I18bee272de79594103bc96253256fec6fc6d62cd
parent fd49debd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;