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