commit | 037d4487e3a12495bc3d32a3468da479e5361b3a | [log] [tgz] |
---|---|---|
author | Jinsuk Kim <jinsukkim@chromium.org> | Sun Jun 14 00:26:29 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Sun Jun 14 00:26:29 2020 |
tree | c076ddc7af004d7305bbcdd1bb5d259194bb41d9 | |
parent | 1d22c9618faff562ba7fd92ed0115973a3db4482 [diff] |
BottomSheet: Make sure to destroy the content after the base tab Preview tab that allows for interaction with the base tab can close the base one while the bottom sheet is in peek state. This scenario keeps the sheet content staying hidden (suppressed), therefore preview tab misses |BottomSheetContent.destroy|. Repro step: 1) Open preview tab, and fully expand 2) Long press on tab switcher button 3) Close the tab No user-visible issue here, but the current content sheet containing the preview tab gets suppressed, and then silently discarded by |BottomSheetControllerImpl.showNextContent|. This CL actively destroys the currently hidden sheet content before the next sheet is ordered to be shown. Change-Id: Ica01d67df611468e0e4c4f48f2bc17e539cd881f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241107 Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Reviewed-by: Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#778115}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.