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

Commit 2eeb419e authored by Adam Powell's avatar Adam Powell
Browse files

Fix ActionBar#setHomeActionContentDescription(0)

This call should be analogous to calling
setHomeActionContentDescription(null) and not throw an exception.

Bug 8657256

Change-Id: Ifa9c7b999f4bf1a31fba43f869e234b1f1861512
parent d3f9ffe2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1354,7 +1354,7 @@ public class ActionBarView extends AbsActionBarView {

    public void setHomeActionContentDescription(int resId) {
        mHomeDescriptionRes = resId;
        mHomeDescription = getResources().getText(resId);
        mHomeDescription = resId != 0 ? getResources().getText(resId) : null;
    }

    static class SavedState extends BaseSavedState {