Merge "Fix the issue that App crash on startForeground."
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user