1. Make sure primary is equipped
2. Open gear menu
3. Put your primary on the ground or in a crate
4. Take your primary back
5. Leave menu
At this point, the action menu shows your primary "in hand". Selecting this option causes the secondary to become equipped, then the primary again. Simply moving away from the crate will cause the secondary to become equipped.