fixed error reading device orientation instead of UI orientation. When device was on back or on face, this would read as portrait, even when the UI was actually in landscape orientation