Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f932a1c authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Direct set activity type to requested config when creating task" into main

parents d3816435 050cb7ed
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6891,7 +6891,9 @@ class Task extends TaskFragment {
            // Set activity type before adding the root task to TaskDisplayArea, so home task can
            // be cached, see TaskDisplayArea#addRootTaskReferenceIfNeeded().
            if (mActivityType != ACTIVITY_TYPE_UNDEFINED) {
                task.setActivityType(mActivityType);
                // Set directly because onParentChanged will propagate it.
                task.getRequestedOverrideConfiguration().windowConfiguration.setActivityType(
                        mActivityType);
            }

            if (mParent != null) {