public MenuInflater getMenuInflater ( ) { if ( DEBUG ) Log . d ( TAG , "[getMenuInflater]" ) ; // Make sure that action views can get an appropriate theme. if ( mMenuInflater == null ) { if ( getActionBar ( ) != null ) { mMenuInflater = new MenuInflater ( getThemedContext ( ) , mActivity ) ; } else { mMenuInflater = new MenuInflater ( mActivity ) ; } } return mMenuInflater ; }
Get a menu inflater instance which supports the newer menu attributes .