am 8e4d3ba6: Merge "Fix bug 3339039 - Preserve proper behavior for action button text when updated." into honeycomb
* commit '8e4d3ba67824d87d832d90e1d0555456b3e76aca': Fix bug 3339039 - Preserve proper behavior for action button text when updated.
This commit is contained in:
@@ -106,10 +106,11 @@ public class ActionMenuItemView extends LinearLayout
|
|||||||
mImageButton.setImageDrawable(icon);
|
mImageButton.setImageDrawable(icon);
|
||||||
if (icon != null) {
|
if (icon != null) {
|
||||||
mImageButton.setVisibility(VISIBLE);
|
mImageButton.setVisibility(VISIBLE);
|
||||||
mTextButton.setVisibility(GONE);
|
|
||||||
} else {
|
} else {
|
||||||
mImageButton.setVisibility(GONE);
|
mImageButton.setVisibility(GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mTextButton.setVisibility(icon == null || mItemData.showsTextAsAction() ? VISIBLE : GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasText() {
|
public boolean hasText() {
|
||||||
|
|||||||
Reference in New Issue
Block a user