I navigate to other fragments using navigation. And I want to add a condition that if, for example, (profile fragment) is running, then visibility = GONE for the header. Experts help to solve the problementer image description here enter image description here
How to find out which fragment is currently running