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

Commit f667aebe authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

Merge "A11y: Prefer EXTRA_TITLE to ticker for status bar icon content description" into oc-dev

parents 8565eab1 6e782a5e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -455,8 +455,8 @@ public class StatusBarIconView extends AnimatedImageView {
        CharSequence title = n.extras.getCharSequence(Notification.EXTRA_TITLE);
        CharSequence ticker = n.tickerText;

        CharSequence desc = !TextUtils.isEmpty(ticker) ? ticker
                : !TextUtils.isEmpty(title) ? title : "";
        CharSequence desc = !TextUtils.isEmpty(title) ? title
                : !TextUtils.isEmpty(ticker) ? ticker : "";

        return c.getString(R.string.accessibility_desc_notification_icon, appName, desc);
    }