summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Jeff Chang <chengjeff@google.com> 2022-04-18 16:26:40 +0800
committer Jeff Chang <chengjeff@google.com> 2022-04-25 18:27:22 +0800
commite79a02435d53de0398170cbfd57755c9dabca6c8 (patch)
tree83cedde8783af85fc5df6a2c5c2827a60c17ac39 /libs/androidfw/AttributeResolution.cpp
parent08c570a8764376855b41fee6d43b6b52b4bc016a (diff)
Fixes un-setting activity type when embed activity in split-screen
An exception was thrown by launching the split-screen from the recent app. It happens while embedding activities in split-screen. System reparent the tasks from split-root to displayArea when return to home screen. The reparent’s action is ignored while dealing with the task whose activity’s type is TYPE_UNDEFINED. Split-screen shell expects the task of activityType is TYPE_STANDARD. That’s why the system throws the legal argument exception because the task is already a child of the root task. The CL looks for the top non-finish activity first before the top child in the task for resolving the task activity type. For example, when add child into TaskFrag#2, this CL resolve the activity type from activity#1 of Task#49. -- Task#49 -- TaskFrag#2 -- activity#2 -- TaskFrag#1 -- activity#1 Bug: 228592780 Test: 1.Drag settings from taskbar into split and launch DWB 2.Return to home and launch the split-screen. Change-Id: I69960b34c909071ce0cce5ff11c630faf6106f6c
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions