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

Commit 68422fd1 authored by Selim Cinek's avatar Selim Cinek
Browse files

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
parent 2c984f16
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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() {