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

Commit 82b25f54 authored by Adam Powell's avatar Adam Powell Committed by The Android Automerger
Browse files

Fix bug 6906134

Change-Id: I47dfa1e503e502fe348a350dad960fbb112435e7
parent ff8e57aa
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -141,6 +141,7 @@ public class ActionMenuItemView extends TextView

    public void setIcon(Drawable icon) {
        mIcon = icon;
        if (icon != null) {
            int width = icon.getIntrinsicWidth();
            int height = icon.getIntrinsicHeight();
            if (width > mMaxIconSize) {
@@ -154,6 +155,7 @@ public class ActionMenuItemView extends TextView
                width *= scale;
            }
            icon.setBounds(0, 0, width, height);
        }
        setCompoundDrawables(icon, null, null, null);

        updateTextButtonVisibility();