Merge "Fixes un-setting activity type when embed activity in split-screen" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0fb7a12804
@@ -2156,7 +2156,8 @@ class TaskFragment extends WindowContainer<WindowContainer> {
|
|||||||
if (applicationType != ACTIVITY_TYPE_UNDEFINED || !hasChild()) {
|
if (applicationType != ACTIVITY_TYPE_UNDEFINED || !hasChild()) {
|
||||||
return applicationType;
|
return applicationType;
|
||||||
}
|
}
|
||||||
return getTopChild().getActivityType();
|
final ActivityRecord activity = getTopNonFinishingActivity();
|
||||||
|
return activity != null ? activity.getActivityType() : getTopChild().getActivityType();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user