summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2012-09-17 13:32:33 -0700
committerAdam Powell <adamp@google.com>2012-09-17 13:32:33 -0700
commit6b6c90523ed8779aa962ff4f5ef8c368a96269e2 (patch)
tree0b7d249f40b43d25fbe47c9d33040c48286e91ab /core
parentc71a57d6fa45edf67e79e948b4656fa25a11f1b8 (diff)
downloadframeworks_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.java2
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