Merge "Fix bug 3339039 - Preserve proper behavior for action button text when updated." into honeycomb

This commit is contained in:
Adam Powell
2011-01-14 15:40:07 -08:00
committed by Android (Google) Code Review

View File

@@ -106,10 +106,11 @@ public class ActionMenuItemView extends LinearLayout
mImageButton.setImageDrawable(icon);
if (icon != null) {
mImageButton.setVisibility(VISIBLE);
mTextButton.setVisibility(GONE);
} else {
mImageButton.setVisibility(GONE);
}
mTextButton.setVisibility(icon == null || mItemData.showsTextAsAction() ? VISIBLE : GONE);
}
public boolean hasText() {