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