Kill overview first before finishing splitview
Currently, pressing the home button in splitview in tablet mode causes unwanted maximized events for snapped windows. In TabletModeWindowManager#OnOverviewModeEndingAnimationComplete(), we intend to prevent this from happening by checking the snapped windows. However, in HomeScreenController#GoHome(), EndSplitView() is called before EndOverview(). As EndSplitView() remove the snapped windows from the the splitview controller, when EndOverview() is called, the above logic to prevent them from being maximized is not working. We can just fix this by killing overview before finishing splitview. BUG=b:149315216 TEST=Manually confirmed pressing the home button in splitview in TEST=tablet mode didn't cause unwanted maximized events. Change-Id: I5ba411fca03f9c63afc7ae3084eb08473e562b34 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2067840Reviewed-by:Toni Baržić <tbarzic@chromium.org> Reviewed-by:
Tetsui Ohkubo <tetsui@chromium.org> Reviewed-by:
Stefan Kuhne <skuhne@chromium.org> Reviewed-by:
Xiaoqian Dai <xdai@chromium.org> Commit-Queue: Kazuki Takise <takise@chromium.org> Auto-Submit: Kazuki Takise <takise@chromium.org> Cr-Commit-Position: refs/heads/master@{#743756}
Showing
Please register or sign in to comment