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

Commit 600d7902 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Set screenshot preview animation destination explicitly" into...

Merge "Merge "Set screenshot preview animation destination explicitly" into 24D1-dev am: 6b32b913" into main
parents f3f085af 7bfcbc12
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -155,6 +155,12 @@ class ScreenshotAnimationController(private val view: ScreenshotShelfView) {

        val previewAnimator = AnimatorSet()
        previewAnimator.play(previewXAndScaleAnimator).with(previewYAnimator)
        previewAnimator.doOnEnd {
            screenshotPreview.scaleX = 1f
            screenshotPreview.scaleY = 1f
            screenshotPreview.x = endPos.x - screenshotPreview.width / 2f
            screenshotPreview.y = endPos.y - screenshotPreview.height / 2f
        }

        previewAnimator.doOnStart { screenshotPreview.visibility = View.VISIBLE }
        return previewAnimator