+8
−2
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Before applying camera compat treatment, the camera compat policy checks whether the app is eligible, but it ignores the current resolved orientation: the treatment should apply if the app has requested fixed orientation and uses camera, even if that orientation is ignored for some other reason (e.g. per-app override to change the orientation). If the app is eligible ignoring the orientation, recompute the orientation (which would apply camera compat orientation if needed) and check eligibility for the rest of the treatment. Part of the treatment (sandboxing display orientation) is applied if the app uses camera on external display, regardless of orientation. Policy needs to make sure the app is running on external display before applying this treatment, even though it has checked before recalculating: the orientation is initially ignored, so it is possible that no treatment will be applied. The treatent without this change still has no effect on the configuration, but might try to refresh the activity (go through stop -> resume). Flag: EXEMPT BUGFIX Test: atest com.google.android.camera.pts.Experimental2022Test#testMeshWarpIsForwardMesh - now passes. Fixes: 444385257 Change-Id: Ib64df39fe5a78ffd70d6d8a72bcaad41dd2f13da