ScreenshotSelector: handle rotation issues
Disable rotation while the screenshot selector is visible, because it cannot handle rotation internally, and rotating while a certain selection is made might cause the selection to go off-screen. Also, adjust the crop coordinates so that they function properly. The native screenshot taking functions expect the coordinates to be in a physical left-to-right, top-to-bottom order, which is not the case for 90 degree rotation, where the top is actually the right physical edge, or for 270 degree rotation, where the right is actually the top physical edge, or for 180 degrees, where both axes are flipped. https://gitlab.com/LineageOS/issues/android/-/issues/1749 Change-Id: I18da90592cf7baa46547554df954bdb071961311
Loading
Please register or sign in to comment