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

This commit is contained in:
Amith Yamasani
2016-05-05 17:45:53 +00:00
committed by Gerrit Code Review

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);