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

Commit 0bd305f4 authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Remove notification content from icon a11y" into sc-dev

parents 93183190 1aa8f6d4
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -588,17 +588,7 @@ public class StatusBarIconView extends AnimatedImageView implements StatusIconDi
            }
        }

        CharSequence title = n.extras.getCharSequence(Notification.EXTRA_TITLE);
        CharSequence text = n.extras.getCharSequence(Notification.EXTRA_TEXT);
        CharSequence ticker = n.tickerText;

        // Some apps just put the app name into the title
        CharSequence titleOrText = TextUtils.equals(title, appName) ? text : title;

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

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

    /**