When device orientation is locked programmatically sometimes the gesture navigation UI is shown at the wrong place. Say if orientation is locked to portrait, gesture navigation