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

Commit 68d2b2f4 authored by Tiger Huang's avatar Tiger Huang
Browse files

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
parent f6a30104
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