Skip to content
Commit a0b530e2 authored by Louis Chang's avatar Louis Chang
Browse files

Ensure the activity type is set to the activity

This CL reverts the changes in commit f9203082. The activity type
was an attribute in ActivityRecord, but added as part of window
configuration after unify. To keep the same behavior as it used to
be, this CL makes sure the activity type is set to the activity's
requested override configuration.

In general, the activity type is not necessary to be set while
creating a Task. The activity type of a Task is determined while
the first activity added into the task.

Also throw exceptions on debuggable builds if activity type is
changed once set.

Bug: 274751858
Test: wm presubmit
Test: drag contacts to split-screen
Change-Id: Ibf18bd6ec932ffef21bf556beea9004c25473203
parent dc8992c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment