From 49db8bd20f4662ee6d37c90a65ee2dd7a737d175 Mon Sep 17 00:00:00 2001 From: Sherry Zhou Date: Fri, 12 May 2023 15:25:52 +0000 Subject: Fix clock scale in picker Test: manual Bug: 278023961 Change-Id: Iec777704376369dd358f29b8aa9376fbe5671b50 --- .../src/com/android/systemui/shared/clocks/DefaultClockController.kt | 2 +- .../plugin/src/com/android/systemui/plugins/ClockProviderPlugin.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt b/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt index 6aa74fbf24e7..252c8e343e0e 100644 --- a/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt +++ b/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt @@ -265,7 +265,7 @@ class DefaultClockController( } } - override fun onPickerCarouselSwiping(swipingFraction: Float, previewRatio: Float) { + override fun onPickerCarouselSwiping(swipingFraction: Float) { // TODO(b/278936436): refactor this part when we change recomputePadding // when on the side, swipingFraction = 0, translationY should offset // the top margin change in recomputePadding to make clock be centered diff --git a/packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockProviderPlugin.kt b/packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockProviderPlugin.kt index 7bf139e69f2e..5d0a3af74e5d 100644 --- a/packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockProviderPlugin.kt +++ b/packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockProviderPlugin.kt @@ -156,7 +156,7 @@ interface ClockAnimations { * Runs when swiping clock picker, swipingFraction: 1.0 -> clock is scaled up in the preview, * 0.0 -> clock is scaled down in the shade; previewRatio is previewSize / screenSize */ - fun onPickerCarouselSwiping(swipingFraction: Float, previewRatio: Float) {} + fun onPickerCarouselSwiping(swipingFraction: Float) {} } /** Events that have specific data about the related face */ -- cgit v1.2.3-59-g8ed1b