Merge "Correctly find last visible usage in chain" into sc-dev am: 0c9176bc1d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15081247 Change-Id: Ifd33537fdec075547235e6ac1301b0f9a5842d91
This commit is contained in:
@@ -542,7 +542,7 @@ final class DiscreteRegistry {
|
|||||||
|
|
||||||
private OpEvent getLastVisible() {
|
private OpEvent getLastVisible() {
|
||||||
// Search all nodes but the first one, which is the start node
|
// 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);
|
OpEvent event = mChain.get(i);
|
||||||
if (!mExemptPkgs.contains(event.mPkgName)) {
|
if (!mExemptPkgs.contains(event.mPkgName)) {
|
||||||
return event;
|
return event;
|
||||||
|
|||||||
Reference in New Issue
Block a user