Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2edaad6 authored by Sherry Zhou's avatar Sherry Zhou Committed by Automerger Merge Worker
Browse files

Merge "Fix default clock moving up in picker preview" into udc-dev am: e52cc3b0 am: f512697f

parents 9f205571 f512697f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -263,6 +263,13 @@ class DefaultClockController(
                view.animateDoze(dozeState.isActive, !hasJumped)
            }
        }

        override fun onPickerCarouselSwiping(swipingFraction: Float, previewRatio: 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
            view.translationY = 0.5f * view.bottom * (1 - swipingFraction)
        }
    }

    inner class LargeClockAnimations(