summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Amith Yamasani <yamasani@google.com> 2012-08-21 14:19:51 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-08-21 14:19:51 -0700
commit23e282554ee0ddff80fd5bd2f47d5fb37b3b02c5 (patch)
tree444455bc32fedbedcdfb43790fa3feac25c4caf3
parent2253eeab6c0c20e0b03f144c5bc23ae13e8ab234 (diff)
parenta10d1aa6c790810990a09f5dfa616075fe198eed (diff)
Merge "Multiprocess activity should be allowed to run on current user" into jb-mr1-dev
-rwxr-xr-xservices/java/com/android/server/am/ActivityStack.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/am/ActivityStack.java b/services/java/com/android/server/am/ActivityStack.java
index 1e0827f8b9db..ccea41aacc25 100755
--- a/services/java/com/android/server/am/ActivityStack.java
+++ b/services/java/com/android/server/am/ActivityStack.java
@@ -3014,8 +3014,8 @@ final class ActivityStack {
// Collect information about the target of the Intent.
ActivityInfo aInfo = resolveActivity(intent, resolvedType, startFlags,
profileFile, profileFd, userId);
- if (aInfo != null && mService.isSingleton(aInfo.processName, aInfo.applicationInfo,
- null, 0)) {
+ if (aInfo != null && (aInfo.flags & ActivityInfo.FLAG_MULTIPROCESS) == 0
+ && mService.isSingleton(aInfo.processName, aInfo.applicationInfo, null, 0)) {
userId = 0;
}
aInfo = mService.getActivityInfoForUser(aInfo, userId);