title: PopupMenu dismiss without checking the selected checkbox item
body: <p>When I click on an item of my Popupmenu, the item doesn't get checked and the menu disappear instantly. Is there a way at least to get the item checked ?</p>
  
  <pre><code>PopupMenu popup = new PopupMenu(getActivity(), v);
  MenuInflater inflater = popup.getMenuInflater();
  inflater.inflate(R.menu.filtering_menu, popup.getMenu());
  popup.getMenu().findItem(R.id.filter_old).setChecked(hide_old);
  popup.setOnMenuItemClickListener(new OnMenuItemClickListener() {
  
      @Override
      public boolean onMenuItemClick(MenuItem item) {
          Toast.makeText(getActivity(), item.getTitle(), Toast.LENGTH_SHORT).show();
          return false;
      }
  });
  popup.show();
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/xWlBk.png" width="300"></p>