Check for application orientation, not device (which doesn't take into account locked orientation).