title: onCreateOptionsMenu not being called
body: <p>onCreateOptionsMenu does not get called in a fragment. I have to manually call <code>setHasOptionsMenu(true)</code> in <code>onCreatedView()</code> but this causes the <code>item.itemId</code> be an empty String <code>""</code> in the <code>onOptionsItemSelected()</code> and therefore i can't detect which menu item was tapped.</p>
  
  <p>I'm currently using this in a fragment:</p>
  
  <pre><code>override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
      super.onCreateOptionsMenu(menu, inflater)
      inflater.inflate(R.menu.menu_font_share, menu)
  }
  
  override fun onOptionsItemSelected(item: MenuItem): Boolean {
      when (item.itemId) {
          R.id.menu_font_size_Btn -&gt; {
  
          }
          R.id.menu_share_Btn -&gt; {
              super.showShareSheet()
          }
      }
  
      return super.onOptionsItemSelected(item)
  }
  </code></pre>