Merge "Fixes un-setting activity type when embed activity in split-screen" into tm-dev am: 0fb7a12804 am: 9b9c7f1100

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17800405

Change-Id: I349d70828f2e8d5a81a7de757bc157d289405cb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-04-28 05:28:34 +00:00
committed by Automerger Merge Worker

View File

@@ -2156,7 +2156,8 @@ class TaskFragment extends WindowContainer<WindowContainer> {
if (applicationType != ACTIVITY_TYPE_UNDEFINED || !hasChild()) {
return applicationType;
}
return getTopChild().getActivityType();
final ActivityRecord activity = getTopNonFinishingActivity();
return activity != null ? activity.getActivityType() : getTopChild().getActivityType();
}
@Override