Set the orientationModes for the main window to Landscape Left and Right. If you launch the app when holing the device in landscape left, the window rotates to landscape right (upside down).
This worked correctly in 1.6.2, but it is broken in 1.7.2.
Step 1: run the code below
Step 2: hold the device on its right side (landscape left)
Step 3: launch the app
Step 4: notice that the window rotates upside down
Step 5: kill the app
Step 6: hold the device on its left side (landscape right)
Step 7: launch the app
Step 8: notice that the window rotates right side up