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.
This commit is contained in:
Adrian Roos
2017-08-09 15:50:00 +02:00
parent 9f3bac52ee
commit effff9c245

View File

@@ -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();