Commit 1293941b authored by mdjones's avatar mdjones Committed by Commit bot

Update new tab button even when not visible

The "close all incognito tabs" notification can close tabs when chrome
is not in the foreground. This action bypasses the animation that
would ordinarily reset the normal button's opacity. In order to
correctly reset this opacity, setIsIncognito will be called even if
the button is not visible.

BUG=642682

Review-Url: https://codereview.chromium.org/2335403004
Cr-Commit-Position: refs/heads/master@{#418741}
parent 0beb0eb6
......@@ -2154,7 +2154,7 @@ public class ToolbarPhone extends ToolbarLayout
updateNtpTransitionAnimation();
}
if (inOrEnteringTabSwitcher) mNewTabButton.setIsIncognito(isIncognito);
mNewTabButton.setIsIncognito(isIncognito);
CharSequence newTabContentDescription = getResources().getText(
isIncognito ? R.string.accessibility_toolbar_btn_new_incognito_tab :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment