Source/sources/android/support/p003v7/view/menu/ActionMenuItemView.java
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        boolean textVisible = hasText();
        if (textVisible && this.mSavedPaddingLeft >= 0) {
            super.setPadding(this.mSavedPaddingLeft, getPaddingTop(), getPaddingRight(), getPaddingBottom());
        }
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        int widthMode = MeasureSpec.getMode(widthMeasureSpec);
        int widthSize = MeasureSpec.getSize(widthMeasureSpec);
        int oldMeasuredWidth = getMeasuredWidth();
        int targetWidth = widthMode == Integer.MIN_VALUE ? Math.min(widthSize, this.mMinWidth) : this.mMinWidth;
        if (widthMode != 1073741824 && this.mMinWidth > 0 && oldMeasuredWidth < targetWidth) {
            super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, Declaration.MODULE_REFERENCE), heightMeasureSpec);
        }
        if (!textVisible && this.mIcon != null) {
            super.setPadding((getMeasuredWidth() - this.mIcon.getBounds().width()) / 2, getPaddingTop(), getPaddingRight(), getPaddingBottom());
        }
    }
/* access modifiers changed from: protected */
access modifiers changed from: protected
access modifiers changed from : protected
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        boolean textVisible = hasText();
        if (textVisible && this.mSavedPaddingLeft >= 0) {
            super.setPadding(this.mSavedPaddingLeft, getPaddingTop(), getPaddingRight(), getPaddingBottom());
        }
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        int widthMode = MeasureSpec.getMode(widthMeasureSpec);
        int widthSize = MeasureSpec.getSize(widthMeasureSpec);
        int oldMeasuredWidth = getMeasuredWidth();
        int targetWidth = widthMode == Integer.MIN_VALUE ? Math.min(widthSize, this.mMinWidth) : this.mMinWidth;
        if (widthMode != 1073741824 && this.mMinWidth > 0 && oldMeasuredWidth < targetWidth) {
            super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, Declaration.MODULE_REFERENCE), heightMeasureSpec);
        }
        if (!textVisible && this.mIcon != null) {
            super.setPadding((getMeasuredWidth() - this.mIcon.getBounds().width()) / 2, getPaddingTop(), getPaddingRight(), getPaddingBottom());
        }
    }
public void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) { boolean textVisible = hasText ( ) ; if ( textVisible && this . mSavedPaddingLeft >= 0 ) { super . setPadding ( this . mSavedPaddingLeft , getPaddingTop ( ) , getPaddingRight ( ) , getPaddingBottom ( ) ) ; } super . onMeasure ( widthMeasureSpec , heightMeasureSpec ) ; int widthMode = MeasureSpec . getMode ( widthMeasureSpec ) ; int widthSize = MeasureSpec . getSize ( widthMeasureSpec ) ; int oldMeasuredWidth = getMeasuredWidth ( ) ; int targetWidth = widthMode == Integer . MIN_VALUE ? Math . min ( widthSize , this . mMinWidth ) : this . mMinWidth ; if ( widthMode != 1073741824 && this . mMinWidth > 0 && oldMeasuredWidth < targetWidth ) { super . onMeasure ( MeasureSpec . makeMeasureSpec ( targetWidth , Declaration . MODULE_REFERENCE ) , heightMeasureSpec ) ; } if ( ! textVisible && this . mIcon != null ) { super . setPadding ( ( getMeasuredWidth ( ) - this . mIcon . getBounds ( ) . width ( ) ) / 2 , getPaddingTop ( ) , getPaddingRight ( ) , getPaddingBottom ( ) ) ; } }
access modifiers changed from: protected
access modifiers changed from : protected