The only obvious similarity between the two branches is that they both deal with the meanings of words and sentences but in different ways.
However, they are intricately linked, for instance, some categories in semantics require the application of pragmatics in order to arrive at a satisfactory interpretation as has been demonstrated in the above mentioned example.