Skip to content

Commit

Permalink
[Start] Fix new tab button shown delay.
Browse files Browse the repository at this point in the history
(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}
  • Loading branch information
spdonghao authored and Chromium LUCI CQ committed Aug 23, 2022
1 parent 605720a commit 10208c7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,10 @@ private boolean isOnATab() {

/** Returns whether it's on grid tab switcher surface. */
private boolean isOnGridTabSwitcher() {
return mIsRefactorEnabled ? mLayoutType == LayoutType.TAB_SWITCHER
: mStartSurfaceState == StartSurfaceState.SHOWN_TABSWITCHER;
return mIsRefactorEnabled
? mLayoutType == LayoutType.TAB_SWITCHER
: (mStartSurfaceState == StartSurfaceState.SHOWN_TABSWITCHER
|| mStartSurfaceState == StartSurfaceState.SHOWING_TABSWITCHER);
}

/**
Expand Down

0 comments on commit 10208c7

Please sign in to comment.