Touch or drag the king two squares in the direction you want to castle in. As long as all other castling conditions are met, the app should take care of the rest.
probably just a misclick/drag