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

Skip to content
Commit b84f973f authored by Oleg Blinnikov's avatar Oleg Blinnikov
Browse files

Fix user rotation of display devices

Previously calling wm user-rotation adb command
for non-default display resulted into a
non-rotated shifted picture.

With this CL, DM will always take the rotation
supplied by WM and set it to the surface flinger
projection. Also to fix the shifted picture
after rotation, there is an additional call
to ContentRecorder.onConfigurationChanged.

VirtualDisplay surface size previously did
not take the possible rotation into account,
this CL fixes this - important for Chromecast.

Change-Id: I6f3a86a97ba81413aa480a763307ac9109585c6f
Bug: 302326003
Bug: 322480626
Test: adb shell setprop persist.demo.userrotation 1
Test: adb shell wm user-rotation -d ${DISPLAYID} lock 1
parent 670ec4a1
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