Compute config based on original override for inherited letterbox
In shell transition, the relative display rotation between parent
will be used as the transform of surface (see WindowContainer
#updateSurfacePosition). Anyway, the original full config contains
too many unrelated non-undefined config fields, which may not be
needed to be the override.
By updating requested override configuration of transparent activity
directly, it won't mis-request unnecessary override fields. Such
as inconsistent max bounds can also be fixed by the way.
Fix: 276711259
Test: SizeCompatTests#testApplyStrategyToTranslucentActivities \
RetainsWindowConfigurationProperties
Test: adb shell wm set-letterbox-style \
--isTranslucentLetterboxingEnabled 1
adb shell cmd window set-ignore-orientation-request 1
Launch a fixed orientation opaque activity and then
a translucent activity in the same task. Rotate display.
Change-Id: Iae4347036f98de345d7d8a367ceb5121974d39f7
Loading
Please register or sign in to comment