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

Commit 0c0faa9d authored by Tiger Huang's avatar Tiger Huang
Browse files

Reland: "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.

The previous attempt didn't make mCompatInsetTypes align with the types
in assignCompatInsets and didn't reset mCompatIgnoreVisibility, which
caused issues that the insets returned from getSystemWindowInsets were
not the same as ones passed to setSystemWindowInsets. This CL won't
have that issue.

Bug: 409469172
Flag: com.android.window.flags.copy_compat_fields_of_window_insets
Test: atest FrameworksCoreTests:WindowInsetsTest
Change-Id: I0d8c08817543e5a2b6d4299be76c0b0505639009
parent 3fc01416
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