code: public boolean hideOverflowMenu() {
          if (mPostedOpenRunnable != null && mMenuView != null) {
              ((View) mMenuView).removeCallbacks(mPostedOpenRunnable);
              mPostedOpenRunnable = null;
              return true;
          }
  
          MenuPopupHelper popup = mOverflowPopup;
          if (popup != null) {
              popup.dismiss();
              return true;
          }
          return false;
      }
docs: Hide the overflow menu if it is currently showing.
  
  @return true if the overflow menu was hidden, false otherwise.