From 63dea3676f3aa08ee04959dce047826fc64311a5 Mon Sep 17 00:00:00 2001 From: Darrell Shi Date: Tue, 8 Nov 2022 16:41:50 +0000 Subject: Move clock and smartspace complications down. By default the home controls chip and smartspace, being on the bottom row, are aligned at the bottom. In order for them to be center aligned, a bottom margin is added to the home controls chip. Test: atest ComplicationLayoutParamsTest Test: atest ComplicationLayoutEngineTest Test: https://screenshot.googleplex.com/7A6MSW29EjfgdYs Bug: 257553229 Change-Id: Ifeb43149768651f6383c286023369029a6704e33 --- packages/SystemUI/res/values/dimens.xml | 2 + .../complication/ComplicationLayoutEngine.java | 4 +- .../complication/ComplicationLayoutParams.java | 7 ++ .../dagger/RegisteredComplicationsModule.java | 28 ++++---- .../complication/ComplicationLayoutEngineTest.java | 74 ++++++++++++++++++++-- .../complication/ComplicationLayoutParamsTest.java | 25 ++++++++ 6 files changed, 121 insertions(+), 19 deletions(-) diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 771d0d19708a..3be489cb6247 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -1478,10 +1478,12 @@ 86sp + 20dp 24sp 36sp 28dp 2dp + 24dp