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

Commit e64e1738 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Ignore orientation override if restricted resizability is declared

If app declares
android.window.PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY
to true.

It should have the behavior same as
android.window.PROPERTY_COMPAT_ALLOW_ORIENTATION_OVERRIDE
to false.

That means the app wants to keep its orientation explicitly,
so OVERRIDE_ANY_ORIENTATION_TO_USER should be ignored as well.

Bug: 443951799
Flag: com.android.window.flags.opt_out_override_orientation_to_user
Test: atest SizeCompatTests# \
      testRestrictedResizabilityOptOutNotOverrideToUser
Change-Id: Idffe17b6cb952ffaa1f504c332be6e1f2784ab11
parent 0603c3a9
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