Call dismiss() on overlay Dialog for onSurfaceDestroyed.
Previously, DialogOverlayCore didn't receive a release() call from DSImpl, since DSImpl drops the reference to DSCore immediately after notifying the client of surface destruction. This caused problems on some cast devices, where the overlay wasn't being deleted properly. Now, DSCore calls release() synchronously after waiting for DSImpl to close the overlay. This keeps the dismiss() call sync with respect to onSurfaceDestroyed. Even if DSImpl did call DSCore.release(), it would be after onSurfaceDestroyed completed. Bug: 782282 Change-Id: I25f98643063545e0a44ccb7ab04145e7c6728d3a Reviewed-on: https://chromium-review.googlesource.com/756932 Commit-Queue: Frank Liberato <liberato@chromium.org> Reviewed-by:Bo <boliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#515234}
Showing
Please register or sign in to comment