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

Skip to content
Commit 3c32253a authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent ebba1751
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