Merge "Multiprocess activity should be allowed to run on current user" into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
23e282554e
@@ -3014,8 +3014,8 @@ final class ActivityStack {
|
|||||||
// Collect information about the target of the Intent.
|
// Collect information about the target of the Intent.
|
||||||
ActivityInfo aInfo = resolveActivity(intent, resolvedType, startFlags,
|
ActivityInfo aInfo = resolveActivity(intent, resolvedType, startFlags,
|
||||||
profileFile, profileFd, userId);
|
profileFile, profileFd, userId);
|
||||||
if (aInfo != null && mService.isSingleton(aInfo.processName, aInfo.applicationInfo,
|
if (aInfo != null && (aInfo.flags & ActivityInfo.FLAG_MULTIPROCESS) == 0
|
||||||
null, 0)) {
|
&& mService.isSingleton(aInfo.processName, aInfo.applicationInfo, null, 0)) {
|
||||||
userId = 0;
|
userId = 0;
|
||||||
}
|
}
|
||||||
aInfo = mService.getActivityInfoForUser(aInfo, userId);
|
aInfo = mService.getActivityInfoForUser(aInfo, userId);
|
||||||
|
|||||||
Reference in New Issue
Block a user