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

Commit 8e5372fe authored by Adam Powell's avatar Adam Powell
Browse files

Fix for setting Toolbar content descriptions

Allow resid 0 as a null content description.

Change-Id: I0663feac229a77d5efffece2bd686de4ee99d840
parent 71ac80c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -592,7 +592,7 @@ public class Toolbar extends ViewGroup {
     */
    public void setNavigationContentDescription(int resId) {
        ensureNavButtonView();
        mNavButtonView.setContentDescription(getContext().getText(resId));
        mNavButtonView.setContentDescription(resId != 0 ? getContext().getText(resId) : null);
    }

    /**