title: Handle Toolbar back button with Navigation component
body: <p>I'm following single activity approach. I have navigation toolbar, whenever i go to other screens (fragments) instead of hamburger icon i will have back arrow.</p>
  
  <p>What i want to achieve is, pop my current fragment using action on pressing toolbar back arrow.</p>
  
  <p>I've tried </p>
  
  <pre><code>requireActivity().getOnBackPressedDispatcher().addCallback(this, new OnBackPressedCallback(true) {
      @Override
      public void handleOnBackPressed() {
          NavHostFragment.findNavController(EventDetailsFragment.this)
          .navigate(R.id.action_nav_event_details_to_nav_home);
      }
  });
  </code></pre>
  
  <p>But not getting the call over there, i checked by running app in debug mode.</p>