From 26ae163a2b62c962f7561148a1b0c6f94c00ad63 Mon Sep 17 00:00:00 2001 From: Felipe Leme Date: Fri, 10 Feb 2017 12:42:44 -0800 Subject: [PATCH] Fixed call to setServiceForegroundInnerLocked(). It was passing the calling uid instead of the notification id. Change-Id: Id8b0f6e547ae2e605302be7e8475a10afdb43b77 Fixes: 35252523 Test: manual verification --- services/core/java/com/android/server/am/ActiveServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/am/ActiveServices.java b/services/core/java/com/android/server/am/ActiveServices.java index 041fee2352e31..9701fde4ac820 100644 --- a/services/core/java/com/android/server/am/ActiveServices.java +++ b/services/core/java/com/android/server/am/ActiveServices.java @@ -462,7 +462,7 @@ public final class ActiveServices { ComponentName cmp = startServiceInnerLocked(smap, service, r, callerFg, addToStarting); if (notification != null) { - setServiceForegroundInnerLocked(r, callingUid, notification, 0); + setServiceForegroundInnerLocked(r, id, notification, 0); } return cmp; }