diff options
| author | 2024-07-11 21:28:32 +0000 | |
|---|---|---|
| committer | 2024-07-23 21:15:11 +0000 | |
| commit | 507dca83b33a1afe23331b5d3095f1efb5d7520f (patch) | |
| tree | 4e8869d21634299e685af37dd59f158b1fbf87a0 /libs/androidfw/AssetsProvider.cpp | |
| parent | 36a3e6e7f5ebe845847c320e11e35a8d2fd0542f (diff) | |
Add FLAG_FORCE_CONSUMING_OPAQUE_CAPTION_BAR
Adds the flag to the InsetsSource created by the caption bar in shell,
and makes the DecorView consume the caption bar insets when set,
regardless of whether the caption bar is hidden or shown, as long as the
window is requesting opaque caption bars (i.e. did not set
APPEARANCE_TRANSPARENT_CAPTION_BAR_BACKGROUND)
Bug: 352563889
Flag: com.android.window.flags.enable_caption_compat_inset_force_consumption_always
Test: open non-immersive apps in freeform that don't handle caption bar
insets (Naver App, Spotify or OneDrive), check caption doesn't overlap
with app content
Test: atest DesktopModeWindowDecorationTests WindowDecorationTests
WindowInsetsTest InsetStateTest
Change-Id: Idb16f647f6a77e04b634e700b5345335b24d284d
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions