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

Skip to content
Commit 5c9d2e88 authored by Demon000's avatar Demon000 Committed by Demon Singur
Browse files

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
parent aa8afca1
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