diff --git a/services/core/java/com/android/server/am/ActiveServices.java b/services/core/java/com/android/server/am/ActiveServices.java index 4b89b404f9b6b..1bba7ec1c68aa 100644 --- a/services/core/java/com/android/server/am/ActiveServices.java +++ b/services/core/java/com/android/server/am/ActiveServices.java @@ -707,7 +707,7 @@ public final class ActiveServices { try { ServiceRecord r = findServiceLocked(className, token, userId); if (r != null) { - setServiceForegroundInnerLocked(r, userId, notification, flags); + setServiceForegroundInnerLocked(r, id, notification, flags); } } finally { Binder.restoreCallingIdentity(origId);