The device orientation is read correctly.