VR: Turn VR mode off when restoring Activity from saved instance.
When Chrome is killed in the background while VR mode is on, we can't turn VR mode off (the platform doesn't respect VR mode changes for backgrounded apps). We also can't check whether VR mode is currently on on Android N, so instead this CL records whether we were in VR mode when killed using saved instance state, and turns VR mode off on startup when restoring. Test/Repro steps: 1. Turn on "Don't keep activities" in developer settings 2. Launch Chrome in VR 3. Press the Daydream controller Home button 4. Exit VR 5. Use task switcher to return to Chrome. > Chrome should resume without VR mode on (the display will flicker if it's on) Bug: 854740 Change-Id: I4fc8e9c076a8cb31ca2bdb74be1124bec3826193 Reviewed-on: https://chromium-review.googlesource.com/1167116 Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Reviewed-by:Yaron Friedman <yfriedman@chromium.org> Cr-Commit-Position: refs/heads/master@{#581957}
Showing
Please register or sign in to comment