Loading
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