summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2017-04-13 16:12:02 -0700
committerSantos Cordon <santoscordon@google.com>2017-04-27 12:33:52 -0700
commitc09d89c1ec4546cfbc5fe2a5091e8fe62be607cd (patch)
tree1f06537dc46ce573498418680055b9b97d4e6336 /rs/java/android/renderscript/RenderScript.java
parenta35e4e5584e219771d007335eb615b2762bd80ef (diff)
Set sensor-supplied orientation always to portrait in VrMode.
For VrMode, we report the sensor as always being in the device's default orientation so that: 1) The orientation doesn't change as the user moves their head. 2) 2D UI within VR shows in the device's default orientation. This only overwrites the sensor-provided orientation and does not affect any explicit orientation preferences specified by any activities. Test: Start 2D UI within VR while device is oriented in landscape and ensure that the item is displayed in portrait. Also start 2D UI with custom orientation and ensure it starts in its preferred orientation. Bug: 36516916 Change-Id: I56380b860eec73cf9485185ded811626e40c5c57
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions