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

Commit d09d1748 authored by Julia Reynolds's avatar Julia Reynolds Committed by Automerger Merge Worker
Browse files

Merge "Remove notification content from icon a11y" into sc-dev am: 0bd305f4

parents 5d55535a 0bd305f4
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, "");
    }

    /**