Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f125d34 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 3339039 - Preserve proper behavior for action button text when

updated.

Change-Id: If3529616d5a2b69638b2b0c4070d5ebbb418410c
parent 94613752
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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() {