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
Loading
Please register or sign in to comment