diff options
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); |