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
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user