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;
|
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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user