From 68422fd1293c005dea032367efd92e4303da4a1f Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 6 Sep 2016 16:42:54 -0700 Subject: [PATCH] Update contentDescription of the DismissView when locale changes When the locale changes, update not only text but also contentDescription of the DismissView. Test: switch language and observe dismiss view description Fixes: 31320721 Change-Id: If89fd6d2f3c3819927a181ff69849b66855ae451 --- .../src/com/android/systemui/statusbar/DismissView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/DismissView.java b/packages/SystemUI/src/com/android/systemui/statusbar/DismissView.java index 2045ec8dfa2d7..1d7bede962d3f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/DismissView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/DismissView.java @@ -56,6 +56,8 @@ public class DismissView extends StackScrollerDecorView { protected void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); mDismissButton.setText(R.string.clear_all_notifications_text); + mDismissButton.setContentDescription( + mContext.getString(R.string.accessibility_clear_all)); } public boolean isButtonVisible() {