Loading
Copy mCompatInsetTypes and mCompatIgnoreVisibility
Before this CL, when creating a new WindowInsets based on an existing
one by using WindowInsets.Builder, some fields were not copyied
properly.
This CL passes mCompatInsetTypes and mCompatIgnoreVisibility from the
given WindowInsets to the newly created one.
This CL also refines the default value of mCompatInsetTypes of Builder,
which should be "systemBars() | displayCutout()" instead of
"systemBars()." See: compatInsetsTypes in InsetsState#calculateInsets.
Fix: 409469172
Flag: EXEMPT bugfix
Test: FrameworksCoreTests:WindowInsetsTest
CtsWindowManagerDeviceInsets:WindowInsetsTest
Change-Id: Ief49e7981946689482e9301a467c59d0e3aaf3b7