Loading packages/SystemUI/src/com/android/systemui/screenshot/ui/ScreenshotAnimationController.kt +7 −5 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ import kotlin.math.sign class ScreenshotAnimationController( private val view: ScreenshotShelfView, private val viewModel: ScreenshotViewModel private val viewModel: ScreenshotViewModel, ) { private var animator: Animator? = null private val screenshotPreview = view.requireViewById<ImageView>(R.id.screenshot_preview) Loading @@ -56,7 +56,7 @@ class ScreenshotAnimationController( listOf<View>( view.requireViewById(R.id.screenshot_preview_border), view.requireViewById(R.id.screenshot_badge), view.requireViewById(R.id.screenshot_dismiss_button) view.requireViewById(R.id.screenshot_dismiss_button), ) private val fadeUI = listOf<View>( Loading @@ -70,9 +70,11 @@ class ScreenshotAnimationController( fun getEntranceAnimation( bounds: Rect, showFlash: Boolean, onRevealMilestone: () -> Unit onRevealMilestone: () -> Unit, ): Animator { val entranceAnimation = AnimatorSet() view.alpha = 1f view.translationX = 0f val previewAnimator = getPreviewAnimator(bounds) Loading Loading @@ -142,7 +144,7 @@ class ScreenshotAnimationController( fun runLongScreenshotTransition( destRect: Rect, longScreenshot: ScrollCaptureController.LongScreenshot, onTransitionEnd: Runnable onTransitionEnd: Runnable, ): Animator { val animSet = AnimatorSet() Loading @@ -165,7 +167,7 @@ class ScreenshotAnimationController( matrix.setScale(currentScale, currentScale) matrix.postTranslate( longScreenshot.left * currentScale, longScreenshot.top * currentScale longScreenshot.top * currentScale, ) scrollTransitionPreview.setImageMatrix(matrix) val destinationScale: Float = destRect.width() / scrollTransitionPreview.width.toFloat() Loading Loading
packages/SystemUI/src/com/android/systemui/screenshot/ui/ScreenshotAnimationController.kt +7 −5 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ import kotlin.math.sign class ScreenshotAnimationController( private val view: ScreenshotShelfView, private val viewModel: ScreenshotViewModel private val viewModel: ScreenshotViewModel, ) { private var animator: Animator? = null private val screenshotPreview = view.requireViewById<ImageView>(R.id.screenshot_preview) Loading @@ -56,7 +56,7 @@ class ScreenshotAnimationController( listOf<View>( view.requireViewById(R.id.screenshot_preview_border), view.requireViewById(R.id.screenshot_badge), view.requireViewById(R.id.screenshot_dismiss_button) view.requireViewById(R.id.screenshot_dismiss_button), ) private val fadeUI = listOf<View>( Loading @@ -70,9 +70,11 @@ class ScreenshotAnimationController( fun getEntranceAnimation( bounds: Rect, showFlash: Boolean, onRevealMilestone: () -> Unit onRevealMilestone: () -> Unit, ): Animator { val entranceAnimation = AnimatorSet() view.alpha = 1f view.translationX = 0f val previewAnimator = getPreviewAnimator(bounds) Loading Loading @@ -142,7 +144,7 @@ class ScreenshotAnimationController( fun runLongScreenshotTransition( destRect: Rect, longScreenshot: ScrollCaptureController.LongScreenshot, onTransitionEnd: Runnable onTransitionEnd: Runnable, ): Animator { val animSet = AnimatorSet() Loading @@ -165,7 +167,7 @@ class ScreenshotAnimationController( matrix.setScale(currentScale, currentScale) matrix.postTranslate( longScreenshot.left * currentScale, longScreenshot.top * currentScale longScreenshot.top * currentScale, ) scrollTransitionPreview.setImageMatrix(matrix) val destinationScale: Float = destRect.width() / scrollTransitionPreview.width.toFloat() Loading