title: How to handle recent apps navigation button in android studio?
body: <p>I have a NavigationView in my app. I want to open the NavigationView when resent apps navigation button is clicked. I tried this:</p>
  <pre><code>@Override
      protected void onPause () {
          if(!(drawer.isDrawerOpen(GravityCompat.START))){
              drawer.openDrawer(GravityCompat.START);
          } 
          super.onPause();
      }
  </code></pre>
  <p>But it opened recent apps and NavigationView together. Is there any way to open NavigationView when recent app button is clicked?</p>