Merge "Fix issue #30647973: stopForeground() doesn't remove notification" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a96e7ac463
@@ -748,7 +748,7 @@ public final class ActiveServices {
|
||||
if (sm != null) {
|
||||
for (int i = sm.mServicesByName.size()-1; i >= 0; i--) {
|
||||
ServiceRecord other = sm.mServicesByName.valueAt(i);
|
||||
if (other.foregroundId == r.foregroundId
|
||||
if (other != r && other.foregroundId == r.foregroundId
|
||||
&& other.packageName.equals(r.packageName)) {
|
||||
// Found one! Abort the cancel.
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user