diff options
| author | 2024-10-14 23:03:59 +0000 | |
|---|---|---|
| committer | 2024-10-15 06:59:20 +0000 | |
| commit | ea0ecb329ecf96d0f2dcc51a9c59e81cc38e1912 (patch) | |
| tree | 882fe47ff1b7eb3c50fd7b099b445891509be1a7 /libs/androidfw/AssetsProvider.cpp | |
| parent | 391f3cff518cb349c69c02debd7d136f8f55aaed (diff) | |
[EXPD] Make non-collapsible toolbar style customizable
Setting Theme.CollapsingToolbar.Settings (which inherits from
Theme.MaterialComponents) as android:theme on AppBarLayout overrides
almost all the theme attributes from the original OEM customizable
Theme.DeviceDefault.Settings theme, because Theme.MaterialComponents
eventually inherits from android:Theme.Material which resets everything.
This change creates a PlatformBridge theme overlay that allows adding
the required theme attributes for MaterialComponents to work, without
resetting everything and make child views deviate from the intended
platform theme.
An OEM will be able to set android:toolbarStyle to customize the action
bar after this change, which is the intended way for customization.
The new theme overlay is only used for the OEM-only
non_collapsing_toolbar_content_layout.xml for now, so that there's no
risk of regression on AOSP or Pixel builds.
Bug: 349675008
Test: atest CtsPermissionUiTestCases
Flag: com.android.permission.flags.app_permission_fragment_uses_preferences
Relnote: N/A
Change-Id: I106c07680ccd4514f888506117c165a5764f1ce5
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions