am 23e28255: Merge "Multiprocess activity should be allowed to run on current user" into jb-mr1-dev

* commit '23e282554ee0ddff80fd5bd2f47d5fb37b3b02c5':
  Multiprocess activity should be allowed to run on current user
This commit is contained in:
Amith Yamasani
2012-08-21 14:22:14 -07:00
committed by Android Git Automerger

View File

@@ -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);