weblayer: Fix visibility change on config change
If fragment is stopped due to config change, then there is no need check whether views are attached for visibility since we want to maintain that the active tab is visible in that case. And remove the call to destroy attachment in detach, which is not needed anymore to maintain visibility. And it's probably the source of some crashes caused by destroying attachment too early before all views are detached and the activity destroyed. Bug: 1127246 Change-Id: I863ae612d1015dee433fbabd16dc7c81d82e60c4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2414668 Commit-Queue: Bo <boliu@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#807642}
Showing
Please register or sign in to comment