diff options
| author | 2021-01-27 22:32:27 +0000 | |
|---|---|---|
| committer | 2021-01-27 22:32:27 +0000 | |
| commit | 9441b74bcbb699e716a95f2b6fbaf3f580931c1c (patch) | |
| tree | 4b2c6cdb32392e50a640de182437d6d0252f8b55 | |
| parent | 0bd23800e4d44365195ba15d448968825d766d41 (diff) | |
| parent | f3a7691c1ccf2031d9d7a68911a3b997f648c849 (diff) | |
Merge "PIN Bouncer: Fix margins" into sc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/keyguard/NumPadKey.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/NumPadKey.java b/packages/SystemUI/src/com/android/keyguard/NumPadKey.java index 8ebcb20fe63f..756d6107570a 100644 --- a/packages/SystemUI/src/com/android/keyguard/NumPadKey.java +++ b/packages/SystemUI/src/com/android/keyguard/NumPadKey.java @@ -156,9 +156,14 @@ public class NumPadKey extends ViewGroup { } @Override - protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { - mAnimator.updateMargin((ViewGroup.MarginLayoutParams) getLayoutParams()); + public void setLayoutParams(ViewGroup.LayoutParams params) { + mAnimator.updateMargin((ViewGroup.MarginLayoutParams) params); + + super.setLayoutParams(params); + } + @Override + protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); measureChildren(widthMeasureSpec, heightMeasureSpec); |