Merge "Fix the issue that App crash on startForeground."

am: 6f28d02bed

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

Change-Id: I2343cf2dffd064cf3ac26bf6ddc34040c6fec5ac
This commit is contained in:
Wang Le
2016-05-05 17:51:45 +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);