Issue #7209355: Intent on the secondary user results in an intent picker in the Primary user. Issue #7214271: Crash in system UI Also fix a bug where I recently broke the removeTask() operation in the activity manager where it would remove the wrong task. Change-Id: I448c73a0e83a78d9d8d96b4629658c169888d275
This commit is contained in:
@@ -4387,6 +4387,8 @@ final class ActivityStack {
|
||||
while (j < NA) {
|
||||
ActivityRecord ar = mHistory.get(j);
|
||||
if (!ar.finishing && ar.task.taskId == taskId) {
|
||||
thumbs.root = ar;
|
||||
thumbs.rootIndex = j;
|
||||
holder = ar.thumbHolder;
|
||||
if (holder != null) {
|
||||
thumbs.mainThumbnail = holder.lastThumbnail;
|
||||
@@ -4401,9 +4403,6 @@ final class ActivityStack {
|
||||
return thumbs;
|
||||
}
|
||||
|
||||
thumbs.root = mHistory.get(j);
|
||||
thumbs.rootIndex = j;
|
||||
|
||||
ArrayList<TaskAccessInfo.SubTask> subtasks = new ArrayList<TaskAccessInfo.SubTask>();
|
||||
thumbs.subtasks = subtasks;
|
||||
while (j < NA) {
|
||||
|
||||
@@ -2488,6 +2488,15 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
if (ri != null) {
|
||||
return ri;
|
||||
}
|
||||
if (userId != 0) {
|
||||
ri = new ResolveInfo(mResolveInfo);
|
||||
ri.activityInfo = new ActivityInfo(ri.activityInfo);
|
||||
ri.activityInfo.applicationInfo = new ApplicationInfo(
|
||||
ri.activityInfo.applicationInfo);
|
||||
ri.activityInfo.applicationInfo.uid = UserHandle.getUid(userId,
|
||||
UserHandle.getAppId(ri.activityInfo.applicationInfo.uid));
|
||||
return ri;
|
||||
}
|
||||
return mResolveInfo;
|
||||
}
|
||||
}
|
||||
@@ -3668,7 +3677,7 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
mResolveActivity.applicationInfo = mAndroidApplication;
|
||||
mResolveActivity.name = ResolverActivity.class.getName();
|
||||
mResolveActivity.packageName = mAndroidApplication.packageName;
|
||||
mResolveActivity.processName = mAndroidApplication.processName;
|
||||
mResolveActivity.processName = "system:ui";
|
||||
mResolveActivity.launchMode = ActivityInfo.LAUNCH_MULTIPLE;
|
||||
mResolveActivity.flags = ActivityInfo.FLAG_EXCLUDE_FROM_RECENTS;
|
||||
mResolveActivity.theme = com.android.internal.R.style.Theme_Holo_Dialog_Alert;
|
||||
|
||||
Reference in New Issue
Block a user