title: Why is onMenuOpened is not called?
body: <p>An app hides the action bar in the following way:</p>
  
  <pre><code>    uiOptions =  View.SYSTEM_UI_FLAG_HIDE_NAVIGATION| View.SYSTEM_UI_FLAG_FULLSCREEN
              | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
              | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
              | View.SYSTEM_UI_FLAG_LAYOUT_STABLE;
      //Hide both the status bar and navigation bar
      getWindow().getDecorView().setSystemUiVisibility(uiOptions);
  </code></pre>
  
  <p>When the screen is touched, the following method is called to show the action bar:</p>
  
  <pre><code>uiOptions = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
          | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
          | View.SYSTEM_UI_FLAG_LAYOUT_STABLE;
  decorView.setSystemUiVisibility(uiOptions);
  </code></pre>
  
  <p>Everything works as expected except when the overflow menu is opened after the 3-dot is tapped, onMenuOpened of the activity is not called, but the menu is opened normally. </p>
  
  <p>Could anyone shed some light on this?</p>