Commit 9790b44e authored by Yue Zhang's avatar Yue Zhang Committed by Commit Bot

Fix a NPE in TabGroupUtils

This CL is gated by Finch parameter "enable_launch_polish" under flag
"enable-tab-grid-layout", with gate function
TabUiFeatureUtilities#isLaunchPolishEnabled.

Bug: 1133908
Change-Id: I90d4576a460303da137bb50ed53552c724628872
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2441934Reviewed-by: default avatarWei-Yin Chen (陳威尹) <wychen@chromium.org>
Commit-Queue: Yue Zhang <yuezhanggg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812526}
parent 0e9bd015
...@@ -50,6 +50,9 @@ public class TabGroupUtils { ...@@ -50,6 +50,9 @@ public class TabGroupUtils {
FeatureConstants.TAB_GROUPS_TAP_TO_SEE_ANOTHER_TAB_FEATURE))) { FeatureConstants.TAB_GROUPS_TAP_TO_SEE_ANOTHER_TAB_FEATURE))) {
return; return;
} }
if (TabUiFeatureUtilities.isLaunchPolishEnabled() && view == null) {
return;
}
@StringRes @StringRes
int textId; int textId;
......
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