Chromium Code Reviews
DescriptionFix placing phone in headset exiting VR.
Currently, daydream DON flow can be passed without putting the phone in the headset (rotating to landscape and pairing the controller passes the DON flow). At the same time, because we don't integrate with daydream home, and we're not a separate activity, we exit VR any time we're paused.
This leads to a situation where we're in VR without having the headset on, we put the phone into the headset, the NFC trigger fires and launches the NFC handling activity (which immediately exits because we're in VR), which causes us to pause and exit VR. There's no way at the moment to detect that we're returning from the NFC activity, short of hacks around listening to the NFC trigger ourselves.
This CL adds a timeout for re-entering VR on CTA resume, after a CTA pause, that should be short enough to avoid any user interaction intending to exit VR leading them to re-enter it.
BUG=641401
Committed: https://crrev.com/dca762297c5f26cb188075775d571c00702d77a4
Cr-Commit-Position: refs/heads/master@{#432773}
Patch Set 1 #Patch Set 2 : Fix webVR re-entry logic. #
Total comments: 6
Patch Set 3 : rebase #Patch Set 4 : rebase #Messages
Total messages: 15 (5 generated)
|