We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c68accd + 9ceac5a commit 0de06b7Copy full SHA for 0de06b7
core/java/android/app/TaskStackBuilder.java
@@ -128,7 +128,11 @@ public TaskStackBuilder addParentStack(Activity sourceActivity) {
128
if (parent != null) {
129
// We have the actual parent intent, build the rest from static metadata
130
// then add the direct parent intent to the end.
131
- addParentStack(parent.getComponent());
+ ComponentName target = parent.getComponent();
132
+ if (target == null) {
133
+ target = parent.resolveActivity(mSourceContext.getPackageManager());
134
+ }
135
+ addParentStack(target);
136
addNextIntent(parent);
137
}
138
return this;
0 commit comments