diff options
author | Adam Powell <adamp@google.com> | 2012-09-17 13:32:33 -0700 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2012-09-17 13:32:33 -0700 |
commit | 6b6c90523ed8779aa962ff4f5ef8c368a96269e2 (patch) | |
tree | 0b7d249f40b43d25fbe47c9d33040c48286e91ab /core | |
parent | c71a57d6fa45edf67e79e948b4656fa25a11f1b8 (diff) | |
download | frameworks_base-6b6c90523ed8779aa962ff4f5ef8c368a96269e2.zip frameworks_base-6b6c90523ed8779aa962ff4f5ef8c368a96269e2.tar.gz frameworks_base-6b6c90523ed8779aa962ff4f5ef8c368a96269e2.tar.bz2 |
TaskStackBuilder - use the correct package for looking up parents
Fix bug 7179104
Change-Id: Ia5d2d285cf22e97c452e0c385ef38c8bce330491
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/app/TaskStackBuilder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/TaskStackBuilder.java b/core/java/android/app/TaskStackBuilder.java index 9c83362..63987f1 100644 --- a/core/java/android/app/TaskStackBuilder.java +++ b/core/java/android/app/TaskStackBuilder.java @@ -162,7 +162,7 @@ public class TaskStackBuilder { ActivityInfo info = pm.getActivityInfo(sourceActivityName, 0); String parentActivity = info.parentActivityName; while (parentActivity != null) { - final ComponentName target = new ComponentName(mSourceContext, parentActivity); + final ComponentName target = new ComponentName(info.packageName, parentActivity); info = pm.getActivityInfo(target, 0); parentActivity = info.parentActivityName; final Intent parent = parentActivity == null && insertAt == 0 |