diff options
| author | 2025-01-30 09:10:36 -0800 | |
|---|---|---|
| committer | 2025-01-30 09:10:36 -0800 | |
| commit | 0bd305f41df15d0c5554699bb5c642de7ab709b4 (patch) | |
| tree | 7c8b44928e647bd132b50745c5fa42364030cc2e | |
| parent | 93183190852d2e00360564c85e403dd28959ddc7 (diff) | |
| parent | 1aa8f6d4de1c1e731fe1757c3f9d0115ba7c7d68 (diff) | |
Merge "Remove notification content from icon a11y" into sc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java index 5302188ccb31..ac8f582dd807 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java @@ -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, ""); } /** |