Merge "Allow pre-warming service running in work profiles"
This commit is contained in:
committed by
Android (Google) Code Review
commit
539bfca1c8
@@ -806,6 +806,7 @@ final class ServiceRecord extends Binder implements ComponentName.WithComponentN
|
||||
void updateKeepWarmLocked() {
|
||||
mKeepWarming = ams.mConstants.KEEP_WARMING_SERVICES.contains(name)
|
||||
&& (ams.mUserController.getCurrentUserId() == userId
|
||||
|| ams.mUserController.isCurrentProfile(userId)
|
||||
|| ams.isSingleton(processName, appInfo, instanceName.getClassName(),
|
||||
serviceInfo.flags));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user