Skip to content

Commit 10208c7

Browse files
spdonghaoChromium LUCI CQ
spdonghao
authored and
Chromium LUCI CQ
committed
[Start] Fix new tab button shown delay.
(cherry picked from commit 5e0d01d) Bug: 1354865 Change-Id: I98bdbff40722a9ddbeac92f23f55007f53545a2f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3843348 Reviewed-by: Xi Han <hanxi@chromium.org> Commit-Queue: Hao Dong <spdonghao@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1037763} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3851021 Cr-Commit-Position: refs/branch-heads/5249@{#43} Cr-Branched-From: 4f7bea5-refs/heads/main@{#1036826}
1 parent 605720a commit 10208c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/StartSurfaceToolbarMediator.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,10 @@ private boolean isOnATab() {
222222

223223
/** Returns whether it's on grid tab switcher surface. */
224224
private boolean isOnGridTabSwitcher() {
225-
return mIsRefactorEnabled ? mLayoutType == LayoutType.TAB_SWITCHER
226-
: mStartSurfaceState == StartSurfaceState.SHOWN_TABSWITCHER;
225+
return mIsRefactorEnabled
226+
? mLayoutType == LayoutType.TAB_SWITCHER
227+
: (mStartSurfaceState == StartSurfaceState.SHOWN_TABSWITCHER
228+
|| mStartSurfaceState == StartSurfaceState.SHOWING_TABSWITCHER);
227229
}
228230

229231
/**

0 commit comments

Comments
 (0)