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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user