Commit f9355db3 authored by Wei-Yin Chen (陳威尹)'s avatar Wei-Yin Chen (陳威尹) Committed by Commit Bot

Hide invisible Tab in GTS layout better

After switching to another tab from GTS, a thumbnail of the original
tab is taken. However, the thumbnail taking would be blocked if the
web contents of the original tab is detached. Therefore, when showing
the GTS-to-Tab transition animation to another tab, we cannot detach
the original tab.

The original tab is supposed to be invisible, but the tab decoration
was not properly hidden.

This CL hides the decoration of that invisible tab.

Bug: 995992
Change-Id: Ia55cc21ddcbbc59674fa8c8268faaddc458cd4a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1764660Reviewed-by: default avatarMei Liang <meiliang@chromium.org>
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689621}
parent cc8123ff
......@@ -200,6 +200,7 @@ public class StartSurfaceLayout extends Layout implements StartSurface.OverviewM
LayoutTab originalTab = createLayoutTab(mTabModelSelector.getCurrentTabId(),
mTabModelSelector.isIncognitoSelected(), NO_CLOSE_BUTTON, NO_TITLE);
originalTab.setScale(0);
originalTab.setDecorationAlpha(0);
layoutTabs.add(originalTab);
}
mLayoutTabs = layoutTabs.toArray(new LayoutTab[0]);
......
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