summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2017-07-21 12:08:53 -0700
committerAlex Sakhartchouk <alexst@google.com>2017-07-28 18:36:34 +0000
commit0b5d9692dcb7eda2a2c82a4b09ca19d2d97ee801 (patch)
tree4e97b7692d09842991d977ef9f30c7fe5950536b /tools/aapt2/java/JavaClassGenerator.cpp
parent37a9991be98d7e5c9ab4ba102c4d29845fa94152 (diff)
Move VR preference for portrait orientation.
This code as written had two problems: 1) It assumed ROTATE_0 was portrait and 2) Only set a preference when an activity was compiled for sensor-based orientations. This change fixes the ROTATE_0 assumption and provides a PORTRAIT preference in VR mode for all activities that aren't explicitly set screenOrientation to "portrait" or "landscape". Bug: 63289312, 62862109 Test: In VR Mode, tested activity preferences of sensor, unspecified, portrait and landscape both on the main display and the virtual display. Change-Id: Ifa04cbcd021e2d744ff70e53cd53359b1ddf5877
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions