Skip to content

Commit 94e0845

Browse files
committed
[Expressive design] CollapsingToolbarBaseActivity: Do not enforce header content scrim background color
Inherit the color from expressive design theme.
1 parent c067ef4 commit 94e0845

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/com/github/iusmac/sevensim/ui/components/CollapsingToolbarBaseActivity.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ protected void onCreate(final @Nullable Bundle savedInstanceState) {
6666
// Enforce the header content scrim background color so it's always different from the
6767
// content view background as we display a subtitle text that may fuse visually with
6868
// other text
69-
getCollapsingToolbarLayout()
70-
.setContentScrimResource(com.android.settingslib.widget.theme.R.color.settingslib_colorSurfaceHeader);
69+
if (!isExpressiveTheme) {
70+
getCollapsingToolbarLayout()
71+
.setContentScrimResource(com.android.settingslib.widget.theme.R.color.settingslib_colorSurfaceHeader);
72+
}
7173
// Override the default AOSP's collapsed state of the AppBarLayout to be expanded upon
7274
// first launch when expressive theme is enabled
7375
if (isExpressiveTheme && savedInstanceState == null) {

0 commit comments

Comments
 (0)