[Home] Finish showing the NTP immediately if bottom sheet is opened
When toggling accessibility mode, if the overview mode is showing we hide it and then open a new tab (see ChromeTabbedActivity#onAccessibilityModeChanged()). In Chrome Home, if the NTP UI is showing then the overview mode is technically showing. Prior to this patch, when ChromeTabbedActivity tried to open a new tab, we would "show" the bottom sheet new tab UI but since the bottom sheet was already opened we never finished showing the new UI (which currently consists of showing the regular toolbar). This patch updates the logic in BottomSheetNewTabController to finishing showing the NTP UI immediately if the bottom sheet is already open when BottomSheetNewTabController#displayNewTabUi() is called. BUG=731147 Change-Id: Ief2d8c738f2c96f34f293ea29e41d8a0ab69b275 Reviewed-on: https://chromium-review.googlesource.com/530077 Commit-Queue: Theresa <twellington@chromium.org> Reviewed-by:Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#478670}
Showing
Please register or sign in to comment