title: MenuItem needs to be clicked 2 times to get activated
body: <p>i am building an application in which i have to display a <code>PopupMenu</code> from a <code>MenuItem</code> in the <code>Toolbar</code>. The problem is that i have to click 2 times in the <code>MenuItem</code> so that i can see the <code>PopupMenu</code>.</p>
  
  <p>My code:</p>
  
  <pre><code>@Override
      public boolean onCreateOptionsMenu(Menu menu) {
          MenuInflater inflater = getMenuInflater();
          inflater.inflate(R.menu.lobby_activity_menu, menu);
  
  
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          mFilterMenuItem = findViewById(R.id.action_search_filter_menu_item);
          switch (item.getItemId()) {
              case R.id.action_search_menu_item: {
                  Toast.makeText(this, "Search button clicked", Toast.LENGTH_SHORT).show();
                  return true;
              }
              case R.id.action_search_filter_menu_item:{
  
                  mFilterMenuItem.setOnClickListener(new View.OnClickListener() {
                      @Override
                      public void onClick(View v) {
                          TileMenu tileMenu = new TileMenu(GuestActivity.this, v, R.menu.filter_menu);
                          Log.e("MENU ITEM", mFilterMenuItem.toString());
                      }
                  });
                  return true;
              }
              default: {
                  return super.onOptionsItemSelected(item);
              }
          }
      }
  </code></pre>
  
  <p>How to fix it to be activated with 1 click?</p>