New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 833381 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Dec 20
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Status bar brand-coloring doesn't match toolbar brand-coloring after transition from CCT to Opened-in-Chrome normal tab

Project Member Reported by ainslie@chromium.org, Apr 16 2018

Issue description

Chrome Version: (copy from chrome://version)
Android. Canary 67.0.3396.3

What steps will reproduce the problem?
(1) in a normal tab, open a site with a theme color, observe status bar matching toolbar (ex: linkedin)
(2) from a CCT viewing a site with a theme color (ex: medium) use the open-in-chrome menu option 

What is the expected result?
- the status bar updates to match the toolbar brand-color/theme-color

What happens instead?
- the status bar keeps the color from the previously focused tab (though the toolbar updates correctly)


https://screenshot.googleplex.com/QF3LOwyKgwN.png


 
Components: UI>Browser>Themes
Labels: Hotlist-Chrome-Modern
Status: Available (was: Untriaged)
Labels: M-69
Components: -UI>Browser>Themes UI>Browser>Mobile>ThemeColors
Labels: Hotlist-UI-Polish
Components: UI>Browser>Mobile>CustomTabs
Owner: peconn@chromium.org
Status: Started (was: Available)
Project Member

Comment 7 by bugdroid1@chromium.org, Dec 20

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/34fd8835bba5d93b0cd369bd35b0e93047125fd2

commit 34fd8835bba5d93b0cd369bd35b0e93047125fd2
Author: Peter E Conn <peconn@chromium.org>
Date: Thu Dec 20 16:55:42 2018

🎨 Update color when Tab is attached to new Activity.

Cause TabThemeHelper#onActivityAttachmentChanged to notify listeners
of a theme color change - this is so that the Tab's new Activity is
notified of the Tab's theme color.

Additionally, this requires adding the Tab to the TabModel slightly
earlier (before the Tab is properly reattached), so that the
listeners that the TabModel registers catch the theme color change.

Bug:  833381 
Change-Id: I721412dcfc4d9ec6d7ddacfda73b9adac644a937
Reviewed-on: https://chromium-review.googlesource.com/c/1384368
Commit-Queue: Peter Conn <peconn@chromium.org>
Reviewed-by: Theresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#618245}
[modify] https://crrev.com/34fd8835bba5d93b0cd369bd35b0e93047125fd2/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
[modify] https://crrev.com/34fd8835bba5d93b0cd369bd35b0e93047125fd2/chrome/android/java/src/org/chromium/chrome/browser/tab/TabThemeColorHelper.java
[modify] https://crrev.com/34fd8835bba5d93b0cd369bd35b0e93047125fd2/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/ChromeTabCreator.java

Status: Fixed (was: Started)

Sign in to add a comment