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

Commit c4852a37 authored by Adam Powell's avatar Adam Powell
Browse files

Fix a bug where MenuItems would not return consistent results for

item icons initialized from a drawable resource id.

Change-Id: Ieb5245b8fe0e11b2eb788143859da1c0b3657b9f
parent f6b8f7b3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -382,7 +382,10 @@ public final class MenuItemImpl implements MenuItem {
        }

        if (mIconResId != NO_ICON) {
            return mMenu.getResources().getDrawable(mIconResId);
            Drawable icon =  mMenu.getResources().getDrawable(mIconResId);
            mIconResId = NO_ICON;
            mIconDrawable = icon;
            return icon;
        }
        
        return null;