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

Skip to content
Commit 1456a938 authored by Iris Chang's avatar Iris Chang Committed by Michael Bestas
Browse files

APP may display abnormally in landscape LCM

When PRIMARY_DISPLAY_ORIENTATION is 90, 180 or 270, there are two issues as below.
1. APP preview displays in wrong direction
2. When APP is launched, APP may display in landscape mode firstly and then change
to portrait mode

The root cause is WMS/AMS use captureLayers instead of captureScreen, the captured
layer displays in wrong direction with surfaceflinger correction.

As captureLayers's CaptureFill is CLEAR, captureScreen's CaptureFill is default
OPAQUE, we can use ReaderArea CaptureFill to separate captureLayers and
captureScreen. And SurfaceFlinger disables the correction if cpatureLayers has been
called.

Test: 1. APP preview displays in correct direction
2. APP is launched normally
3. The  direction of captrueScreen is correct

Change-Id: I759448404970202a88c52b2a21549a777698fb0b
parent 386830b0
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