It's the opinion on smoking, not praying, that differs.
In both cases you're praying and smoking at the same time, so your actions don't change, but the priest rationalizes two completely different answers based on the way the question is posed. It's just an example to show how two contradictory answers can seem rational to the same person because of the language used.