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

Skip to content
Commit 09355a36 authored by Kevin Chyn's avatar Kevin Chyn Committed by Android Build Coastguard Worker
Browse files

Also reverse rotation for #freezeRotation path

When auto-rotation is disabled, users can apply the suggested rotation
using the rotation icon from SysUI. The sensor value passed to
DisplayRotation#freezeRotation(int) that comes from
WindowManagerService#freezeDisplayRotation also needs to apply the
same reversing logic as DisplayRotation#rotationForOrientation.

Fixes: 275286150
Test: atest DisplayRotationTests
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4c2b792c116e04591b0d28235ca6329b944ecf32)
Merged-In: I985ae560d8eff6ea063206c1e39bd694ab576fde
Change-Id: I985ae560d8eff6ea063206c1e39bd694ab576fde
parent 59cb04c3
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