title: invalidateOptionsMenu() deprecated
body: <p>In one of my fragment class, I using <code>invalidateOptionsMenu()</code> as below</p>
  
  <pre><code>invalidateOptionsMenu(activity)
  </code></pre>
  
  <p>but it is deprecated</p>
  
  <blockquote>
    <p>'invalidateOptionsMenu(Activity!): Boolean' is deprecated. Deprecated
    in Java</p>
  </blockquote>
  
  <p>What can be used to replace <code>invalidateOptionsMenu(Activity activity)</code> ?</p>
  
  <p><strong><em>P/S:This method still can be used, but will it be an issue in future?</em></strong></p>