Merge "Fix false-positive matching of notification to FGS" into sc-dev am: ff3d2907e8 am: 80c24e4d81
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14823049 Change-Id: I88c3fed1f069c7eed77b854dfcccb84dfdb327aa
This commit is contained in:
@@ -2005,7 +2005,9 @@ public final class ActiveServices {
|
||||
|
||||
for (int i = 0; i < smap.mServicesByInstanceName.size(); i++) {
|
||||
final ServiceRecord sr = smap.mServicesByInstanceName.valueAt(i);
|
||||
if (id != sr.foregroundId || !pkg.equals(sr.appInfo.packageName)) {
|
||||
if (!sr.isForeground
|
||||
|| id != sr.foregroundId
|
||||
|| !pkg.equals(sr.appInfo.packageName)) {
|
||||
// Not this one; keep looking
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user