appium/appium — pull request #1260 by paymand (2013-10-03 10:55:04+00:00)
Title: Refactored setOrientation() for Android.

Appium throws "Set the orientation, but app refused to rotate." when
setting the orientation to landscape on Android, which was fixed by
calling the correc function. Also, made the code simpler by defining
portrait=(0 degree rotation) and landscape=(270 degree rotation)
regardless of current display rotation.