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

Skip to content
Commit 6dc652f6 authored by Mina Granic's avatar Mina Granic
Browse files

Freeform: Use camera compat aspect ratio when in camera compat mode.

Add a `WindowManagerShellCommand` to enable changing camera compat
aspect ratio dynamically. Use per-app override aspect ratio only for
camera if such exists over the configuration camera compat aspect ratio.

Also rename some camera compat API methods and move the business logic
from `AppCompatCameraPolicy` facade to the strategy camera policies.
This makes it clearer for the clients which signals should be used.

Flag: com.android.window.flags.camera_compat_for_freeform
Bug: 347864073
Bug: 369082932
Fixes: 368573687
Test: atest WmTests:CameraCompatFreeformPolicyTests
Test: atest WmTests:AppCompatOrientationPolicyTests
Change-Id: I2993e98209fec532fa5cec33a8adef885846233e
parent 27a0aa54
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment