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

Commit da11e939 authored by Adrian Roos's avatar Adrian Roos Committed by android-build-merger
Browse files

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

am: f667aebe

Change-Id: Iae45c9efabc48d27d11211a63e50bf94abe98300
parents 722ec3df f667aebe
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);
    }