Skip to content

Commit e01538f

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "TaskStackBuilder - use the correct package for looking up parents" into jb-mr1-dev
2 parents e2fb519 + 6b6c905 commit e01538f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/app/TaskStackBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public TaskStackBuilder addParentStack(ComponentName sourceActivityName) {
162162
ActivityInfo info = pm.getActivityInfo(sourceActivityName, 0);
163163
String parentActivity = info.parentActivityName;
164164
while (parentActivity != null) {
165-
final ComponentName target = new ComponentName(mSourceContext, parentActivity);
165+
final ComponentName target = new ComponentName(info.packageName, parentActivity);
166166
info = pm.getActivityInfo(target, 0);
167167
parentActivity = info.parentActivityName;
168168
final Intent parent = parentActivity == null && insertAt == 0

0 commit comments

Comments
 (0)