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; Context ctx = null;
try { try {
ctx = ams.mContext.createPackageContext( ctx = ams.mContext.createPackageContextAsUser(
appInfo.packageName, 0); appInfo.packageName, 0, new UserHandle(userId));
Notification.Builder notiBuilder = new Notification.Builder(ctx); Notification.Builder notiBuilder = new Notification.Builder(ctx);