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

Commit 4ec17921 authored by Julia Reynolds's avatar Julia Reynolds Committed by Android Build Coastguard Worker
Browse files

Remove notification content from icon a11y

The content can be read when the full cards are visible

Test: StatusBarIconViewTest
Test: enable talkback, highlight icons
Flag: EXEMPT bug fix
Bug: 338024220
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2465326a187f11fefde17e667e9cf3fd890cdb57)
Merged-In: Ic607ab91e77bc660e3fccbc2390dd60151798ad7
Change-Id: Ic607ab91e77bc660e3fccbc2390dd60151798ad7
parent 85755928
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -601,17 +601,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, "");
    }

    /**