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

Commit 2e0b5486 authored by Tiger Huang's avatar Tiger Huang
Browse files

Refine getSystemWindowInsets when compatIgnoreVisibility is true

Before this CL, WindowInsets#getSystemWindowInsets would only return the
vales in mTypeMaxInsetsMap (except IME) if mCompatIgnoreVisibility is
true. However, the caller might add insets to mTypeInsetsMap via
WindowInsets#replaceSystemWindowInsets. So when mCompatIgnoreVisibility
is true, anyone (including the framework) cannot get the insets added
previously from getSystemWindowInsets.

Before commit 68d2b2f4,
mCompatIgnoreVisibility would be cleared unexpectedly by Builder. So
this issue was not discovered.

This CL returns the larger values between typeInsetsMap and
typeMaxInsetsMap from getSystemWindowInsets when mCompatIgnoreVisibility
is true.

Fix: 428536047
Bug: 429707181
Flag: EXEMPT bug fix
Test: atest WindowInsetsTest
Change-Id: Ie965457279b3e5dd78c73c6995e678654894094a
parent 34121fc5
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