[Start] Handle the bottom sheet suppression in Start surface.
When clicking +1 button from the Tab Switcher, it launched the Start surface via ChromeTabCreator#launchNTP(). During this transition from the Tab Switcher mode to the Start surface mode, the onActivityChange() event isn't triggered since tab is null in both scenarios. As a result, the token to suppress the bottom sheet in Tab Switcher isn't released when transiting to the Start surface. In this CL, we make BottomSheetManager listen to the Start surface state change, and move the logic of suppression of the bottom sheet for Start surface + Tab switcher into the listener. Bug: 1129746 Change-Id: I74fd545bfd6799626a57944fb97db6c9164225be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2541811Reviewed-by:Theresa <twellington@chromium.org> Reviewed-by:
Wei-Yin Chen (陳威尹) <wychen@chromium.org> Reviewed-by:
Matthew Jones <mdjones@chromium.org> Commit-Queue: Xi Han <hanxi@chromium.org> Cr-Commit-Position: refs/heads/master@{#828979}
Showing
This diff is collapsed.
Please register or sign in to comment