diff options
| author | Matt Pietal <mpietal@google.com> | 2021-05-27 15:22:24 -0400 |
|---|---|---|
| committer | Matt Pietal <mpietal@google.com> | 2021-05-27 15:24:37 -0400 |
| commit | ba57dba13b6cca616af0e29d5c77781c43b734d8 (patch) | |
| tree | 9b065816f7896127e79aa414e7cbf787add4cf30 /packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java | |
| parent | 14016d39a6e238b9e9a2ddff576c1376063f10f9 (diff) | |
Smartspace padding for AOD/LS
Update spacing, specifically to match the end padding for the
smartspace container. Reduce padding for the icon shelf to match
incoming changes for smartspace
Bug: 189363380
Test: manual
Change-Id: I82030e21cd5b77424b30dc3c634d01c73beac148
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java')
| -rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java index 28534d380c1f..3e084b7d692a 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java @@ -183,9 +183,11 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS lp.addRule(RelativeLayout.BELOW, R.id.lockscreen_clock_view); mView.addView(mSmartspaceView, ksaIndex, lp); - int padding = getContext().getResources() + int startPadding = getContext().getResources() .getDimensionPixelSize(R.dimen.below_clock_padding_start); - mSmartspaceView.setPadding(padding, 0, padding, 0); + int endPadding = getContext().getResources() + .getDimensionPixelSize(R.dimen.below_clock_padding_end); + mSmartspaceView.setPaddingRelative(startPadding, 0, endPadding, 0); // ... but above the large clock lp = new RelativeLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT); |
