From 9decd5ab3b2c8d6742c3a4cb10a107fa9cf43afc Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Mon, 23 Jan 2017 13:49:24 -0500 Subject: [PATCH] Restore foreground service notifications Fixes: 34582788 Test: manual; start a foreground service) and verify notification appears (here, set an alarm in Clock app) Change-Id: Ib788cc78c461d2da32ea9abdb11ab384d1d09dd2 --- 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 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);