Actually, the British succeeding in ending Muslim dominance of the Indian sub-continent when they took over.
So much that in the end those elements of Islam hightailed it to Pakistan.
Correct. And that is why they got the support of the hindu right-wing parties.