title: Is this a good way of detecting the current active fragment?
body: <p>I'm currently trying to determine which fragment is the current active one within the onResume() method.</p>
  <p>I'm currently basing the detection off the destination ID. Would the ID be the same for everyone who downloads the app or is it a randomly generated number?</p>
  <p>How I'm getting the ID:</p>
  <pre><code>Navigation.findNavController(getView()).getCurrentDestination().getId()
  </code></pre>
  <p>How I'm using it:</p>
  <pre><code> if (Navigation.findNavController(getView()).getCurrentDestination().getId() == 2131296382){
                  Log.w(&quot;Navigation&quot;, &quot;The current fragment is the chat fragment&quot;);
  }
  </code></pre>