mirror of
https://github.com/appium/appium.git
synced 2026-10-24 09:45:38 +08:00
Appium throws "Set the orientation, but app refused to rotate." when setting the orientation to landscape on Android, which was fixed by calling the correct function. Also, made the code simpler by defining portrait=(0 degree rotation) and landscape=(270 degree rotation) regardless of current display rotation. Moreover, unfreeze device rotation at the end.