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

Skip to content
Commit 5052f015 authored by Oleg Blinnikov's avatar Oleg Blinnikov
Browse files

Added OnSetRequestedOrientation callback

DisplayRotation disables Auto-Rotation for immersive applications.
But during the rotation of the device, application may change
the requested orientation by calling
ActivityRecord.setRequestedOrientation

This CL makes sure that onProposedRotationChanged gets reevaluated
if previously user was shown with the rotation button, and
then setRequestedOrientation being invoked by the application.

Bug: 275810916
Test: atest DisplayRotationTests ActivityRecordTests
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:fe766df5e0908d6678ec01dec4ec7d1ab95bc840)
Change-Id: I4fe6ef7716398047a757a5c761f316f6145d00b6
parent bf7d5d06
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