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

Commit effff9c2 authored by Adrian Roos's avatar Adrian Roos
Browse files

LockIcon: update content description when config changes

Fixes a stale content description after a configuration change.

Change-Id: Ie666d405417ce47cc0fc550b79a948425565162d
Fixes: 64234917
Test: Change language, verify content description of lock icon is updated.
parent 9f3bac52
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -332,6 +332,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
        lp.width = getResources().getDimensionPixelSize(R.dimen.keyguard_affordance_width);
        lp.height = getResources().getDimensionPixelSize(R.dimen.keyguard_affordance_height);
        mLockIcon.setLayoutParams(lp);
        mLockIcon.setContentDescription(getContext().getText(R.string.accessibility_unlock_button));
        mLockIcon.update(true /* force */);

        lp = mLeftAffordanceView.getLayoutParams();