diff options
author | Beverly <beverlyt@google.com> | 2021-07-28 12:35:43 -0400 |
---|---|---|
committer | Beverly Tai <beverlyt@google.com> | 2021-07-29 16:10:05 +0000 |
commit | 5bc5eb4cff29359aeeeab34a20ce46e5752efb01 (patch) | |
tree | 8253b12dc4f93edcc0a805d644b14e3280efb727 /packages/SystemUI/src/com/android/keyguard/LockIconViewController.java | |
parent | 294e8a1efc67505ae8ecad3f2f8e866b22dcbe9a (diff) |
Add gravity center to layout params
Also, update string resources on config changes
Test: manually change locale
Fixes: 194642457
Change-Id: I9b7a22db00a57c1a87a6d59472bc7f2ed2c31015
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/LockIconViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/LockIconViewController.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java index 9beb4cce0ca7..4317e258d8f7 100644 --- a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java @@ -96,8 +96,8 @@ public class LockIconViewController extends ViewController<LockIconView> impleme @NonNull private final AnimatedVectorDrawable mLockToUnlockIcon; @NonNull private final Drawable mLockIcon; @NonNull private final Drawable mUnlockIcon; - @NonNull private final CharSequence mUnlockedLabel; - @NonNull private final CharSequence mLockedLabel; + @NonNull private CharSequence mUnlockedLabel; + @NonNull private CharSequence mLockedLabel; @Nullable private final Vibrator mVibrator; private boolean mIsDozing; @@ -314,6 +314,12 @@ public class LockIconViewController extends ViewController<LockIconView> impleme mHeightPixels = metrics.heightPixels; mBottomPadding = mView.getContext().getResources().getDimensionPixelSize( R.dimen.lock_icon_margin_bottom); + + mUnlockedLabel = mView.getContext().getResources().getString( + R.string.accessibility_unlock_button); + mLockedLabel = mView.getContext() + .getResources().getString(R.string.accessibility_lock_icon); + updateLockIconLocation(); } |