Prevent set intent on non-leaf tasks

The root task was created with null intent, but the intent,
resize mode and other information were updated from child tasks,
which sets the split-screen-secondary root task to unresizable.

This CL is back porting from f666e494af to prevent setting the
split-screen-secondary root task to unresizable.

Bug: 230435065
Bug: 185810717
Test: atest IntentTests
      atest ActivityStarterTests
      atest TaskRecordTests
      atest testSplitscreenPortraitAppOrientationRequests
Change-Id: I856d66371ac121f681958a7129527f18a5357d0f
(cherry picked from commit c5aaf99df5656fde68a4aaf2801fe30b0f5e44ae)
Merged-In: I856d66371ac121f681958a7129527f18a5357d0f
1 file changed