android: Recreating activity for orientation
ScreenOrientationProvider(Impl) is currently coded to assume the embedding Activity handles (and thus is not destroyed and recreated) on orientation change. All the API methods take WindowAndroid. This does not work for embedder that recreates the Activity (and by extension the WindowAndroid) on orientation change. This causes orientation requests made in this transition time to be completely dropped. Fix this for cases for requests made from WebContents from native code. If there is no WindowAndroid, add an observer to to wait until WebContents gets a WindowAndroid to make the request. Bug: 1159529 Change-Id: Iae177faffa67d3e4db58ea1e0d5a9df989d303a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2603856 Commit-Queue: Bo <boliu@chromium.org> Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Cr-Commit-Position: refs/heads/master@{#841606}
Showing
Please register or sign in to comment