Merge "Fix the issue that App crash on startForeground." am: 6f28d02bed

am: ceb5e42220

* commit 'ceb5e42220048cd3cd56425cd0e39b194cbe4dcd':
  Fix the issue that App crash on startForeground.

Change-Id: I3a1cf74afd0c7948325410d255f1a4743a7f55aa
This commit is contained in:
Amith Yamasani
2016-05-05 17:56:03 +00:00
committed by android-build-merger

View File

@@ -458,8 +458,8 @@ final class ServiceRecord extends Binder {
}
Context ctx = null;
try {
ctx = ams.mContext.createPackageContext(
appInfo.packageName, 0);
ctx = ams.mContext.createPackageContextAsUser(
appInfo.packageName, 0, new UserHandle(userId));
Notification.Builder notiBuilder = new Notification.Builder(ctx);